cancel
Showing results for 
Search instead for 
Did you mean: 

Category search

ricny046
Champ in-the-making
Champ in-the-making
Hello,

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

darryl_staflund
Champ in-the-making
Champ in-the-making
Hi there,

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.

Darryl
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.