02-19-2018 06:38 AM
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?
02-19-2018 04:08 PM
Hello.
You have not mentioned how you are trying those queries.
What is the search "language" you are using?
Lucene, AFTS, CMIS?
02-20-2018 02:14 AM
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.
06-13-2018 10:25 AM
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.
Explore our Alfresco products with the links below. Use labels to filter content by product module.