-
Notifications
You must be signed in to change notification settings - Fork 248
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
CreateIndexRequest with raw JSON and "limit token count token filter" fails if optional parameter is missing #313
Comments
Working around the
|
Facing the same issue, and my workaround was to:
Subsequent GetIndex request via Java client no longer errors. |
This has been fixed in PR #344, which will be included in versions 8.4.0 and 7.17.6 |
Java API client version
7.17.4
Java version
1.8.0_332
Elasticsearch Version
7.17.4
Problem description
We have index mappings stored as JSON files and have successfully used
RestHighLevelClient
like this:We're now trying to migrate away from
RestHighLevelClient
to something like this:But with the JSON below, we get an exception like this:
Even though the documentation on https://www.elastic.co/guide/en/elasticsearch/reference/7.17/analysis-limit-token-count-tokenfilter.html#analysis-limit-token-count-tokenfilter-configure-parms states that
consume_all_tokens
is optional. It works fine if"consume_all_tokens": false
is added to theone_token_limit
filter.This is a stripped down mapping JSON that fails:
The text was updated successfully, but these errors were encountered: