Skip to content

MB-72554: Handle deprecated analysis components - #2403

Open
Samsonnyyeet wants to merge 1 commit into
masterfrom
MB-72554-hebmorph-deprecated-validate
Open

Samsonnyyeet wants to merge 1 commit into
masterfrom
MB-72554-hebmorph-deprecated-validate

Conversation

@Samsonnyyeet

Copy link
Copy Markdown
Contributor

Analysis components (analyzers, tokenizers, token maps, token filters) can be removed from the registry over time. Previously, an index built with one of these would become impossible to open, rebuild, or query, since lookups failed with a plain "not registered" error.

Now such a name is reported as deprecated instead. Opening, rebuilding, and indexing continue to work for an existing mapping that references one, with affected fields indexed without analysis. Queries that need to analyze text with a deprecated component still fail, but with an error that identifies it as deprecated rather than unknown. New mappings should reject these components by checking Validate's error for registry.ErrDeprecatedComponent.

Analysis components (analyzers, tokenizers, token maps, token filters) can
be removed from the registry over time. Previously, an index built with one
of these would become impossible to open, rebuild, or query, since lookups
failed with a plain "not registered" error.

Now such a name is reported as deprecated instead. Opening, rebuilding, and
indexing continue to work for an existing mapping that references one, with
affected fields indexed without analysis. Queries that need to analyze text
with a deprecated component still fail, but with an error that identifies
it as deprecated rather than unknown. New mappings should reject these
components by checking Validate's error for registry.ErrDeprecatedComponent.
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 51.888% (+0.2%) from 51.688% — MB-72554-hebmorph-deprecated-validate into master

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