Hi,
When I run this query against indexes created in my elasticsearch node
(version 1.0.0.Beta1-SNAPSHOT), I just get some results (10) while the
number of hits is '105'. Do I miss something (parameter) in the query ?
Query :
curl -XPOST 'http://localhost:9200/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
Result :
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 21,
"successful" : 21,
"failed" : 0
},
"hits" : {
"total" : 105,
"max_score" : 1.0,
"hits" : [ {
"_index" : "aaa",
"_type" : "bbb",
"_id" : "1",
"_score" : 1.0, "_source" : {"foo":"bar"}
},
...
Regards,
Charles
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hello!
By default ElasticSearch returns only 10 documents from all the ones that were found. You can modify how many documents you want to be returned, look at size and from parameters - http://www.elasticsearch.org/guide/reference/api/search/from-size/.
However, remember that fetching too many results with a standard query is not advisable and will result in poor performance. If you wish to fetch all query results you should look at the scroll functionality - http://www.elasticsearch.org/guide/reference/api/search/scroll/
--
Regards,
Rafał Kuć
Sematext :: http://sematext.com/ :: Solr - Lucene - ElasticSearch
Hi,
When I run this query against indexes created in my elasticsearch node (version 1.0.0.Beta1-SNAPSHOT), I just get some results (10) while the number of hits is '105'. Do I miss something (parameter) in the query ?
Query :
curl -XPOST 'http://localhost:9200/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
Result :
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 21,
"successful" : 21,
"failed" : 0
},
"hits" : {
"total" : 105,
"max_score" : 1.0,
"hits" : [ {
"_index" : "aaa",
"_type" : "bbb",
"_id" : "1",
"_score" : 1.0, "_source" : {"foo":"bar"}
},
...
Regards,
Charles
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.