You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens with 1.3.4. Repeating these steps enough times I sometimes get both documents returned by the filter and sometimes only the one with the non-empty string.
Delete the index
$ curl -XDELETE localhost:9200/test
Insert 2 documents using bulk API (one has empty string and one does not)
I think this is due to the fact that elasticsearch does not generate dynamic mappings for the empty string. Additionally, your documents likely go to different shards, so they are processed in parallel, the order is not defined.
The mapping for title is created by the document that has a non empty title. And sometimes it occurs before the document with an empty title is indexed (when you have 2 matches), sometimes after (when you have 1 match).
I believe this would be fixed by creating dynamic mappings for empty strings but I'm unsure about side effects it could have.
This will help the exists/missing filters behave as expected in presence of
empty strings, as well as when using a default analyzer that would generate
tokens for an empty string (uncommon).
Closeelastic#8198
This will help the exists/missing filters behave as expected in presence of
empty strings, as well as when using a default analyzer that would generate
tokens for an empty string (uncommon).
Close#8198
This happens with 1.3.4. Repeating these steps enough times I sometimes get both documents returned by the filter and sometimes only the one with the non-empty string.
Delete the index
Insert 2 documents using bulk API (one has empty string and one does not)
This filter sometimes returns only document 2 and sometimes both
I suspect it may have to do with the order in which the documents are indexed by the bulk API. But in http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_batch_processing.html it is mentioned that "The bulk API executes all the actions sequentially and in order" so I am wondering if this is a bug.
The text was updated successfully, but these errors were encountered: