You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client throws an exception when attempting to parse an index which settings include a simple_pattern_split or simple_pattern tokenizer.
IndexSettings cannot be deserialized from settings using either of these tokenizers preventing them from being used in a CreateIndexRequest. Using the client to make a GetIndexRequest for an index using these settings throws the same exception.
IndexSettings should be able to be deserialized from these settings because according to the documentation they're still supported tokenizers. The client should be able to get data for an index which uses these settings.
What is your host/environment?
macOS Sequoia 15.3
Do you have any additional context?
These settings work when reaching out to OpenSearch directly and appear to be supported by the High Level Rest Client. I'm encountering this issue now that I'm trying to migrate to the Java client. These tokenizer types aren't present in the TokenizerDefinition.
What is the bug?
The client throws an exception when attempting to parse an index which settings include a
simple_pattern_split
orsimple_pattern
tokenizer.IndexSettings
cannot be deserialized from settings using either of these tokenizers preventing them from being used in aCreateIndexRequest
. Using the client to make aGetIndexRequest
for an index using these settings throws the same exception.Exception thrown:
org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'Builder.<variant kind>'
How can one reproduce the bug?
Reproduce the bug by deserializing from JSON:
Reproduce the bug by getting an index which was created using these settings:
What is the expected behavior?
IndexSettings
should be able to be deserialized from these settings because according to the documentation they're still supported tokenizers. The client should be able to get data for an index which uses these settings.What is your host/environment?
macOS Sequoia 15.3
Do you have any additional context?
These settings work when reaching out to OpenSearch directly and appear to be supported by the High Level Rest Client. I'm encountering this issue now that I'm trying to migrate to the Java client. These tokenizer types aren't present in the TokenizerDefinition.
OpenSearch DSL:
The text was updated successfully, but these errors were encountered: