I've created a custom type that has few fields that could get value in a list of values, as example:
<property name="igwtato">
<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?
@igwtato:'Chiusa'
@igw\tato:'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?
Hello.
You have not mentioned how you are trying those queries.
What is the search "language" you are using?
Lucene, AFTS, CMIS?
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.
I have a similar case here, and I tested it using the format
igwtato:"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.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.