ElasticSearch max result set

Max size of the result set being returned from ElasticSearch by default is set to 10. Default number can be overwritten in the search query by using “size” attribute in the search query. Is there any way to set default number for the Elastic Search server to be different than 10, and not use parameters in the search query? Perhaps somewhere in “config/elasticsearch.yml” in the elastic search server installation.

Answers

  • As far as I know there's no way of setting other default in the configuration. You will have to use the query parameters when doing the search requests.