Skip to content
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

[BUG] BukResponseItem not returning the source document back #1322

Open
abraham-parusu opened this issue Nov 21, 2024 · 1 comment
Open

[BUG] BukResponseItem not returning the source document back #1322

abraham-parusu opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@abraham-parusu
Copy link

What is the bug?

BukResponseItem not returning the source document back

How can one reproduce the bug?

BulkRequest.Builder().operations(ops)
.source(SourceConfigParam.Builder().fetch(true).build())
.refresh(Refresh.True).timeout(Time.Builder().time(“1h”).build())
.build()

client.bulk(bulkRequest)

bulkResponse.items().first().get() is null in the response. Ops have only one item here.

What is the expected behavior?

bulkResponse.items().first().get() should return the source document back

What is your host/environment?

OpenSearch Version: 2.16.0
Java Client: 2.10.1

Do you have any screenshots?

Do you have any additional context?

My requirement is to fetch the source document back in the bulk response for each of the bulk response item. This is to post process the dependencies based on the changed data and status.

@abraham-parusu abraham-parusu added bug Something isn't working untriaged labels Nov 21, 2024
@Xtansia Xtansia removed the untriaged label Nov 21, 2024
@Xtansia
Copy link
Collaborator

Xtansia commented Nov 21, 2024

@abraham-parusu Could you please provide a more complete example? What type of operation are you attempting to perform? As only update operations obey the source param and return the get field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants