I am running a filter against an index using a size and from parameter and
getting different results on the same query. How can I make this filter
return consistent results so I can make the size/to useful?
all results
curl
'http://localhost:9200/providers/provider/_search?pretty=true&fields=_id'
-d
'{"filter":{"and":[{"term":{"names.last_name":"doris"}},{"term":{"addresses.state":"fl"}}]}}'
{
"took" : 34,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 3,
"max_score" : 1.0,
"hits" : [ {
"_index" : "providers",
"_type" : "provider",
"_id" : "1013944560",
"_score" : 1.0
}, {
"_index" : "providers",
"_type" : "provider",
"_id" : "1851535512",
"_score" : 1.0
}, {
"_index" : "providers",
"_type" : "provider",
"_id" : "1568607125",
"_score" : 1.0
} ]
}
}
size=1, from=1
running 4 times cycles through two entries
curl
'http://localhost:9200/providers/provider/_search?pretty=true&size=1&from=1&fields=_id'
-d
'{"filter":{"and":[{"term":{"names.last_name":"doris"}},{"term":{"addresses.state":"fl"}}]}}'
{
"took" : 35,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 3,
"max_score" : 1.0,
"hits" : [ {
"_index" : "providers",
"_type" : "provider",
"_id" : "1568607125",
"_score" : 1.0
} ]
}
}
{
"took" : 25,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 3,
"max_score" : 1.0,
"hits" : [ {
"_index" : "providers",
"_type" : "provider",
"_id" : "1851535512",
"_score" : 1.0
} ]
}
}
{
"took" : 33,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 3,
"max_score" : 1.0,
"hits" : [ {
"_index" : "providers",
"_type" : "provider",
"_id" : "1568607125",
"_score" : 1.0
} ]
}
}
{
"took" : 25,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 3,
"max_score" : 1.0,
"hits" : [ {
"_index" : "providers",
"_type" : "provider",
"_id" : "1851535512",
"_score" : 1.0
} ]
}
}