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?
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.