simple search issue

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

simple search issue

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

1 Reply
andy1
Senior Member

Re: simple search issue

Hi

This is not possible to answer without

  • the data model
  • the text value of the metadata
  • the query you are trying to use
  • an explanation of why you think your query should find property

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