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

RestHighLevelClient - Default Index and Type should be supported in BulkRequest #31168

Closed
koalalam opened this issue Jun 7, 2018 · 2 comments

Comments

@koalalam
Copy link

koalalam commented Jun 7, 2018

When calling bulk/bulkAsync function in RestHighLevelClient, the parameter BulkRequest doesn't support default index and type which is supported in the Bulk API:

https://www.elastic.co/guide/en/elasticsearch/reference/6.2/docs-bulk.html

"The endpoints are /_bulk, /{index}/_bulk, and {index}/{type}/_bulk. When the index or the index/type are provided, they will be used by default on bulk items that don’t provide them explicitly."

However, when BulkRequest is converted to Request object, only "/_bulk" is used.

This is important if url based entitlement is used and "rest.action.multi.allow_explicit_index" is set to true

https://www.elastic.co/guide/en/elasticsearch/reference/6.2/url-access-control.html

Elasticsearch version (bin/elasticsearch --version): 6.x

Plugins installed: []

JVM version (java -version): 1.8

OS version (uname -a if on a Unix-like system): Linux

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@javanna
Copy link
Member

javanna commented Jun 7, 2018

This is the same problem as described in #26026 . Closing in favour of the existing issue.

@javanna javanna closed this as completed Jun 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants