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

Change AnalyzerChooser to not consider text #2993

Closed
ScottDugas opened this issue Dec 5, 2024 · 0 comments · Fixed by #2994
Closed

Change AnalyzerChooser to not consider text #2993

ScottDugas opened this issue Dec 5, 2024 · 0 comments · Fixed by #2994
Assignees

Comments

@ScottDugas
Copy link
Collaborator

This is a revert of #1613 which caused the index to use a different analyzer per record depending on the contents. This isn't really compatible with how IndexWriters are created, and hasn't been used.

I'm not entirely sure how it was intended to work, as you need some alignment with the query analyzer and the indexer analyzer. If you have two analyzers that behave differently for a given word, and then search for that word, how you analyze it, would depend on the surrounding contents of the field.

It also complicates allowing concurrent updates, since each record could in theory have different analyzers depending on the content, requiring the IndexWriter to be re-created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant