cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Federated Search

warren
Champ in-the-making
Champ in-the-making
I have been testing configurations for federated search using remote engine definitions and the local alfresco respository to make several sources available on the Sidebar and the Dashboard search component.

The problem I have encountered is that local searches and remote search es parse the search terms string in different ways.

The net effect is that I cannot do an AND search on terms in the local repository and remote sources at the same time.

If I use syntax: term AND term  - the local search fails.
If I use syntax: +term +term  - the remote search fails.
They seem to be mutually exclusive.

This severly reduces the benefit of the the federation capability.

This seems to be a code level and not a config issue. Am I missing something here.


Warren
1 REPLY 1

davidc
Star Contributor
Star Contributor
The OpenSearch keyword search defaults to OR.  There's no support for AND or + operators in the search syntax.

Search behaviour is consistent across local and remote repositories - they're all using the same search back-end.  So, I'm not sure why you're getting inconsistent results.

A freemarker template is used to build the keyword search query - it's in config/alfresco/templates/api/KeywordSearch_query_.ftl.  It could be changed to use AND instead of OR.

In 2.1, I hope we can support the same syntax as the Web Client search.