Searching from array with OR

am looking at this

so would this be the right way to go?

{
"constant_score" : {
"filter" : {
"terms" : {
"sid" : ["11111", "22222", "3333"],
"execution" : "bool",
"_cache": true
}
}
}
}

On Friday, 1 March 2013 15:18:23 UTC+11, moocow wrote:

hello there, im trying to make a query as simple and obviously as fast as
possible.

i have a bunch of items indexed in ES with field sid,

i have a an array of sids -> [1111,2222,3333] and so i want to find all
items in ES where sid==1111 or sid==22222 or sid==3333 etc.

Previously I have only used query string, but my array of sids is pretty
massive (500+) so dont want to use query string, what would be the best way
to find matching items in ES?

Hope that makes sense.
Cheers
Lu

--
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.
For more options, visit https://groups.google.com/groups/opt_out.