elasticsearch - Search result does not contain all hits for page -
elasticsearch - Search result does not contain all hits for page -
doing standard search query on elasticsearch index:
get /myindex/mytype/_search?q=nameenglish:stir i response like:
{ "hits": { "total": 2, "max_score": 1.8492403, "hits": [...1 object...] }, "_shards": { "total": 1, "successful": 1, "failed": 0 }, "timed_out": false, "took": 1 } so, it's telling me there 2 matches, it's returning one. if want other nail have run query &from=1. understand it, default page size elasticsearch 10 records, why returning 1?
adding &size= parameter doesn't impact result. can reproduce other queries (i.e. number of "hits" returned beingness less page size), , number of records returned vary depending on whether add together sort parameter query.
i'm testing on searchly-hosted es index.
with default configuration of es 1.2.1 (win), 5 hits when seek query. perhaps in configuration of searchly.
try query post request. reply should have header similar (max 5 successful), should receive 10 (or more) resonses depending on size parameter.
elasticsearch searchly
Comments
Post a Comment