search fields that get value from a list of value

cancel
Showing results for 
Search instead for 
Did you mean: 
redflow
Active Member II

search fields that get value from a list of value

I've created a custom type that has few fields that could get value in a list of values, as example:

<property name="igwSmiley Frustratedtato">
      <title>Stato</title>
      <type>d:text</type>
      <mandatory>true</mandatory>
      <default>In corso</default>
      <index enabled="true">
         <tokenised>TRUE</tokenised>
         <facetable>false</facetable>
      </index>
      <constraints>
         <constraint name="igw:LIST_31ed644b-6edc-49eb-83f3-7c8fa5faa2e2" type="LIST">
            <parameter name="allowedValues">
               <list>
                     <value>In corso</value>
                     <value>In attesa di risposta</value>
                     <value>Chiusa</value>
               </list>
            </parameter>
            <parameter name="sorted">
               <value>false</value>
            </parameter>
         </constraint>
      </constraints>
</property>

How should I set search query to get values?

@igwSmiley Frustratedtato:'Chiusa'

@igw\Smiley Frustratedtato:'In corso' 

return always empty list even if there are folder with that values!

I have this issue only on list of values fields, on string, integer and date fields everything is ok.

What I'm doing wrong? 

3 Replies
douglascrp
Advanced II

Re: search fields that get value from a list of value

Hello.

You have not mentioned how you are trying those queries.

What is the search "language" you are using?

Lucene, AFTS, CMIS?

redflow
Active Member II

Re: search fields that get value from a list of value

Hi Douglas,

I'm trying using search in Alfresco Share. Next step will be to create saved search for user control panel. 

The best way will be to be able to create advanced search for this custom type but I'm having wrong search result.....probably for the same reason.

Thank you.

douglascrp
Advanced II

Re: search fields that get value from a list of value

I have a similar case here, and I tested it using the format

igwSmiley Frustratedtato:"Chiusa"

Notice there is no "@" and I am using the " character instead of the '.

And about the property, the only difference I see is that the property in my content model is defined as follows:

<tokenised>both</tokenised>

Can you try it that way?

After you change the configuration, you will have to perform a reindex.