cancel
Showing results for 
Search instead for 
Did you mean: 

Open Search - KeywordSearch_query_.ftl configuration

sergio
Champ in-the-making
Champ in-the-making
Hi need to customize the search criteria inside the KeywordSearch_query_.ftl  file in order to include only some specific custom metadata defined by a custom content model.

For example, I have a metadata named mageSmiley TongueatientAge, how can I include it for searching?

My second question is: is it possible to customize the searching criteria using some kind of extension mechanism or should I modify the KeywordSearch_query_.ftl  file only?

Many thanks to all.

Sergio
2 REPLIES 2

davidc
Star Contributor
Star Contributor
The KeywordSearch_query_.ftl template generates a lucene query.  You can adjust to search your own properties - the syntax is described here…

http://wiki.alfresco.com/wiki/Search#Finding_nodes_by_text_property_values

In v2.0, you have to modify the .ftl file.

In v2.1, Open Search support has been implemented with a new v2.1 feature called Web Scripts (http://wiki.alfresco.com/wiki/Web_Scripts).  Web Scripts provide a way of overridding their behaviour without modifying their original files.

sergio
Champ in-the-making
Champ in-the-making
Again, thanks for your explanation.

Taking a look at the Roadmap wiki article, it is said that the Alfresco 2.1 release will be available during next June. I will be waiting for the new release to be published in "suspance".

Manuy thanks,

Sergio