Implicit search terms

Our index contains documents with the optional field Category. We need to search by default only the documents that have no category, and search for the documents with category only if the specific category provided explicitly.
We could not expect every search query to use exist query properly or at all. Yet, if search query does not explicitly provide a category, only documents that have no category should be returned.
Could this requirement be implemented on the back end and how?

Welcome to our community! :smiley:

This is something your code would need to figure out when it receives the request, and then send the relevant query to Elasticsearch.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.