Could you give me an advice? I am a novice in Elasticsearch.
I have these documents:
{
document1: [{location: foo, type: 3}, {location: baz, type: 1}],
document2: [{location: foo, type: 1}, {location: bar, type: 2}]
}
I want to find document with location "foo" and type 2 and I expect to
get only document2, but when I use bool query (with "must") I receive
both of docmunents.
What methods do you know to receive only document2?
Could you give me an advice? I am a novice in Elasticsearch.
I have these documents:
{
document1: [{location: foo, type: 3}, {location: baz, type: 1}],
document2: [{location: foo, type: 1}, {location: bar, type: 2}]
}
I want to find document with location "foo" and type 2 and I expect to
get only document2, but when I use bool query (with "must") I receive
both of docmunents.
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.