How to search by any word in any field with ElasticSearch rest high-level client? Also add aggregation on same query

I have to search a any word in any field with elasticSearch rest high-level client and also apply aggregation on query so get source bucket.

Please suggest proper way.

Try the simple query string query or the multimatch query.

For the aggregation part, I'm not sure I understood the question. On which field you want to aggregate ? What kind of aggregation you want to run?

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