You are not logged in.
Pages: 1
Hi,
Is it possible to combine AND and OR matching in a search?
We are hoping to implement a custom advanced search panel on the home page. Some of the fields will reference vocabularies where the searcher might want to find a match in several selected categories (OR). At the same time, they might choose a single keyword or enter a bit of text to match (AND).
i.e. can the advanced search be run to achieve:
( field1=cat1 OR field1=cat5 OR field1=cat28 ) AND ( field2=text-to-match)
And if so, can someone give an example!? :)
Many thanks
Mike
Offline
Hi Mike,
I think you would have to perform two searches in the API, and manually combine the results (essentially, building a search to send to the JSON API in two separate requests to emulate the logic you've described!).
Best wishes
Michael
Offline
Pages: 1