Hello,
Examples of some documents:
POST /test-index/test-type-1/doc-1
{
"text" : "Some text",
"status" : 1
}
POST /test-index/test-type-2/doc-1
{
"text" : "Some new text",
"status" : 1
}
POST /test-index/test-type-2/doc-2
{
"text" : "Some even new text",
"status" : 2
}
Is there a single query I can use so that I can get all the documents that
are of 'status'=1 in 'type'='test-type-1' and 'status'=2 in
'type'='test-type-2' applying the same 'size' and 'from' params? As of
right now I am running two different queries and then I am trying to merge
them programatically. Any better way you recommend?
AJ
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/7f6bac9f-8fc3-4886-8a70-4dac81424073%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.