How to handle a huge query to elasticsearch

In order to group the elastic documents in different categories, we have to run some huge queries against elasticsearch. Based on the user input we have to exclude some of the documents that match a criteria. This results in the query becoming very huge. Is there any way we can handle these queries? Any recommendation that can be incorporated in the app to handle such scenarios.

e.g Running multiple search queries and then taking the union / intersection of the response.

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