php - Set size with unlimite value in Elasticsearch -
i use offical php library request es. however, result return max. 10 documents query.
how change limit in unlimited ?
size = 0 no work me
the elastisearch docs suggest scan
type query large set of results
the scan search type allows efficiently scroll large result set. it’s used first executing search request scrolling , query:
curl -xget 'localhost:9200/_search?search_type=scan&scroll=10m&size=50' -d ' { "query" : { "match_all" : {} } } '
"the scroll parameter controls keep alive time of scrolling request , initiates scrolling process. timeout applies per round trip (i.e. between previous scan scroll request, next)."
Comments
Post a Comment