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

Elasticsearch: keep path from base URI #3042

Merged
merged 4 commits into from
Dec 1, 2023

Conversation

ennru
Copy link
Member

@ennru ennru commented Nov 30, 2023

The current implementation drops any path that is present in the baseUri.

References

@ennru ennru requested a review from patriknw November 30, 2023 11:13
val endpoint = if (settings.allowExplicitIndex) "/_bulk" else s"/${elasticsearchParams.indexName}/_bulk"
val endpoint =
if (settings.allowExplicitIndex) baseUri.path / "_bulk"
else baseUri.path / elasticsearchParams.indexName / "_bulk"
Copy link
Member

Choose a reason for hiding this comment

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

use ?/ to avoid possible double / in case the baseUri ends with /

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

@patriknw patriknw merged commit 2d8b404 into akka:main Dec 1, 2023
50 checks passed
@ennru ennru deleted the ennru-elastic-baseuri branch December 1, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants