Hi everyone,
I would like to use a scan search with a filtered query but it doesn't seem
to be possible.
With a match_all query I get ( size * nb of shards ) hits.
With a filtered query I get ( size ) hits as a total. This is why I think
the scan type has been disabled.
Here are the queries I'm using :
curl -XGET 'http://mydomain/mytype/_search?search_type=scan&scroll=1m' -d '
{
"size":1,
"query":{
"match_all":{
}
}
}'
and
curl -XGET 'http://mydomain/mytype/_search?search_type=scan&scroll=1m' -d '
{
"size":1,
"query":{
"filtered":{
"query":{
"match_all":{
}
},
"filter":{
"bool":{
"must":[
{
"range":{
"createdAt":{
"from":2,
"to":1423673779284,
"include_lower":true,
"include_upper":false
}
}
},
{
"terms":{
"id":[
"94839384"
]
}
}
]
}
}
}
}
}'
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cf4dbaa4-5d18-4665-864c-217bef58a0f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.