cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Search multiple search terms

idwright
Star Collaborator
Star Collaborator
Hi,
I've created a new Advanced Search form in Share for a custom content model.

This works fine however the search only returns results which match ALL search terms whereas I want to return results that match ANY search terms

e.g. for data with properties (and search form fields) of city and country
city: Berlin
country: Germany

I want get results when searching for:
a) just Berlin
b) just Germany
c) Berlin and Germany

At the moment only c) gives me a result
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
This behavior can be changed by one of the configuration I do not remember exactly where to changes but It changes this AND behavior with OR behavior.

idwright
Star Collaborator
Star Collaborator
It's working now without, I think, having changed anything apart from restarting alfresco

(I didn't change it but for reference the setting mentioned above can be set in extension/web-client-config-custom.xml

<config>
      <client>
         <search-and-terms>false</search-and-terms>
      </client>
   </config>

)

mitpatoliya
Star Collaborator
Star Collaborator
So now you are getting desired results great.
Please mark it as solved.