elasticsearch - Why Elasicsearch query show partial results? -


i partial result search elasticsearch:

curl -xget 'http://1.1.1.1:9200/my.index-*/api/_search?q=name:foo' 

i get:

{   "took": 14,   "timed_out": false,   "_shards": {     "total": 204,     "successful": 204,     "failed": 0   },   "hits": {     "total": 543,     "max_score": 2.734601,     "hits": [ ....... 

and show 10 hits...why?

use , size, see documentation on elastic website.

click here go documentation

{     "from" : 0, "size" : 10,     "query" : {         "match" : { "name" : "foo" }     } } 

it defaults 0 , 10, reason you're getting 10 hits


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -