As you can see only one document returned. Why not both? I find such
behavior very ambiguous. I think if we request whole index, so all
documents with given id should be returned regardless of type.
your request is already ambigous. You specify a single ID, but expect two
results to return, as you did not specify a type. However to identify a
document in a unique fashion, you need the tuple of index/type/id, of which
a type is missing here.
So, either specify all three, or maybe elasticsearch should possibly reject
such a request and return an error message. Maybe create a github issue?
As you can see only one document returned. Why not both? I find such
behavior very ambiguous. I think if we request whole index, so all
documents with given id should be returned regardless of type.
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.