10-31-2017 05:58 AM
Hi
I need to create a simple search for properties of a file. For that, i created a folder structure like this
:src/main/amp/config/alfresco/extension/templates/webscripts/slingshot/search/search-config.xml
in the search-config.xml file,i placed a following code
<search>
<default-operator>AND</default-operator>
<default-query-template>%(cm:name cm:title cm:description my:authorisedBy my:licenseNumber my:companyName TEXT TAG)</default-query-template>
</search>
but if i try to search with my:companyName 'Companyname' it is filtering the data,but file name search is working fine.
can anyone tell me why only cm:name is working and cm:companyName filter is not working
Thank you,
Yuvaraj
11-02-2017 06:19 AM
Hi
This is not possible to answer without
The template is used when a field is not defined, If you type in a single word "woof" it will expand to search many fields using the query template. For "cm:name:woof" you have provided a field so if will not use the template.
Andy
Explore our Alfresco products with the links below. Use labels to filter content by product module.