Now, when I tried a matchAll query with this data set,
curl -XGET 'http://localhost:9202/_all/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
I get back only 10 results and they are random every time. However, the
total hits remain 500. The hits array only contain 10 entries. Am I missing
something?
Now, when I tried a matchAll query with this data set,
curl -XGET 'http://localhost:9202/_all/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
I get back only 10 results and they are random every time. However, the
total hits remain 500. The hits array only contain 10 entries. Am I missing
something?
Now, when I tried a matchAll query with this data set,
curl -XGET 'http://localhost:9202/_all/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
I get back only 10 results and they are random every time. However, the
total hits remain 500. The hits array only contain 10 entries. Am I missing
something?
Now, when I tried a matchAll query with this data set,
curl -XGET 'http://localhost:9202/_all/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
I get back only 10 results and they are random every time. However, the total hits remain 500. The hits array only contain 10 entries. Am I missing something?
I'm not sure, but I think it's MAX_INT-1 or something like that. But
if you want to go through a lot of results, you almost certainly would
be better off if you set your type of search to scan[0] and then
scroll[1] through the results.
That said, the scan type doesn't support sorting[2].
Now, when I tried a matchAll query with this data set,
curl -XGET 'http://localhost:9202/_all/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
I get back only 10 results and they are random every time. However, the
total hits remain 500. The hits array only contain 10 entries. Am I missing
something?
On Wednesday, November 7, 2012 2:44:57 AM UTC-5, Radu Gheorghe wrote:
Hello Dinesh,
I'm not sure, but I think it's MAX_INT-1 or something like that. But
if you want to go through a lot of results, you almost certainly would
be better off if you set your type of search to scan[0] and then
scroll[1] through the results.
That said, the scan type doesn't support sorting[2].
Now, when I tried a matchAll query with this data set,
curl -XGET 'http://localhost:9202/_all/_search?pretty=true' -d '
{
"query" : {
"matchAll" : {}
}
}'
I get back only 10 results and they are random every time. However,
the
total hits remain 500. The hits array only contain 10 entries. Am I
missing
something?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.