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

Change aoe-web-backend opensearch refresh=wait_for to false #28

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

MikkoKauhanen
Copy link
Contributor

@MikkoKauhanen MikkoKauhanen commented Dec 10, 2024

AWS OpenSearch serverless does not support refresh=wait_for operation when writing data into index.

Therefore changed the code to await client.bulk({ refresh: false, body })

@MikkoKauhanen MikkoKauhanen changed the title Change refresh=wait_for to false as opensearch serverless does not su… Change aoe-web-backend opensearch refresh=wait_for to false Dec 10, 2024
Copy link
Contributor

@hsalokor hsalokor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muuten näyttää hyvältä!

aoe-web-backend/src/search/es.ts Show resolved Hide resolved
aoe-web-backend/src/search/esCollection.ts Show resolved Hide resolved
@MikkoKauhanen MikkoKauhanen force-pushed the fix/web-backend-opensearch branch from e4f1af9 to f50d51f Compare December 11, 2024 09:28
@MikkoKauhanen MikkoKauhanen merged commit 5168991 into aws-migration Dec 11, 2024
3 checks passed
@MikkoKauhanen MikkoKauhanen deleted the fix/web-backend-opensearch branch December 11, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants