cancel
Showing results for 
Search instead for 
Did you mean: 

Query lucene in association

fidel2003
Champ in-the-making
Champ in-the-making
I want to search objects for name, date, etc in these objects and its associations. Example:

Object A: It have a dateA, nameA and asocciation by ObjectB

Object B: It have a nameB, dateB and It haven't an association.

It's possible a query lucene with parameters nameA,dateA,nameB that return objectA if parameters are in object A and B?

Thanks for all.
4 REPLIES 4

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

I think this is not possible at the moment. Associations are not indexed by Lucene in Alfresco. Only "child associations" (parent->child) are indexed.

fidel2003
Champ in-the-making
Champ in-the-making
Very thanks for the answer Smiley Wink

_sax
Champ in-the-making
Champ in-the-making
Hello,

I would be interested in how I could display an association in advanced search. I activated several custom properties in "web-client-config-custom.xml", but there seems to be no way to to this for associations.

   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <custom-properties>
            <meta-data aspect="xyz:document" child-association="xyz:Link" display-label="Link"/>
         </custom-properties>
      </advanced-search>
   </config>

as well as association only leads to
javax.faces.FacesException: str parameter is mandatory
caused by:
org.apache.jasper.JasperException: str parameter is mandatory
when calling the advanced search page.

Am I missing something, or is this just not implemented yet?

rleones
Champ in-the-making
Champ in-the-making
I know that right now Alfresco do not provide this feature, but I'd really like to know if Alfresco Team are thinking in providing this feature soon…