Lucene search exact property value is not getting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 09:18 AM
In my data-List I configured multiple groups in properties
- IT
- IT1
- IT2
when I try to search the exact group with property like IT.Still it is showing all the 3 properties
I tried like this:
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" =@tst\:deptName:"IT"
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" @tst\:deptName:"IT"
In both cases I got the all 3 values.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 12:19 PM
Because you have not used an AND before the last condition, you are basically doing an OR query here (unless you have the default operator set to AND).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2017 09:59 PM
Now I tried like that but there is no luck
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" AND =@tst\:deptName:"IT"
found 0 results for above query.
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" AND @tst\:deptName:"IT"
In this case it shows all values starting with IT in that List Result I got for above query is : found 3 results...
But we need to get only one values from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2017 11:17 AM
Hi
You need to make sure your property is set to support identifier based queries. How is this property defined? You need it to be tokenised "both" or "false" ....... not set to "true".
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2017 11:54 AM
I set this property inside the datalist.
I didn't get what your saying for this :You need to make sure your property is set to support identifier based queries
Please can you elaborate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2018 06:02 AM
Hi
Please post your property definition so we can tell what you have done and suggest the fix.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2018 06:09 AM
Hi Andy,
Please find
<type name="tst:departmentList">
<title>Department Groups List</title>
<description>Department and it's groups</description>
<parent>dl:dataListItem</parent>
<properties>
<property name="tst:deptName">
<title>Department Name</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
<associations>
<association name="tst:deptGroup" read-only="false">
<title>Department Group</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:authorityContainer</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</type>
