I have a custom model with a property looking like this: <property name="customrganization"> <title>Organization</title> <type>d:category</type> <mandatory>true</mandatory> <multiple>true</multiple> <index enabled="true"> <tokenised>both</tokenised> </index> </property>
Now I want to create a Lucene query to search for all documents that has a particular category. How can I do that?
It would have been awesome if I could do something like this:
@custom\rganization:"categorytosearchfor" but of course that won't work because the custom property is not a text field but I hope you get the idea
Since the Organization property isn't a primitive Alfresco datatype, you'd have to model it as an association or as an aspect, and then do the search based on your implementation strategy.