AnsweredAssumed Answered

Category search

Question asked by ricny046 on Oct 19, 2010
Latest reply on Oct 19, 2010 by darryl_staflund
Hello,

I have a custom model with a property looking like this:
<property name="custom:organization">
   <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\:organization:"categorytosearchfor" but of course that won't work because the
custom property is not a text field but I hope you get the idea :)

Outcomes