-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different id when I use bulk or create #1475
Comments
Can someone please take a look? |
We're planning to discuss a common approach withing the team to address this issue. A workaround has been provided in the meantime. |
This has been fixed on #1618, and has been backported to |
Closing this issue as the fix is now available in v7.16.3. |
elasticsearch-ruby 7.0.0
If I do a
bulk
with this id:Mi LED 4K TV 4S 44''
and then do a create with the same id, it will save two different records.Example (steps):
client = Elasticsearch::Client.new
client.bulk(body: [{create: { _index: @index_name, _id: "Mi LED 4K TV 4S 44''", data: {doc: 'Hello' }}}])
client.create(index: @index_name, id: "Mi LED 4K TV 4S 44''", body: {doc: ''})
then
client.search(index: @index_name, id: "Mi LED 4K TV 4S 44''")
result:
Expected behaviour: save only one record
@paulslaby
The text was updated successfully, but these errors were encountered: