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

Add support for index_prefix #816

Merged
merged 7 commits into from
Feb 6, 2025
Merged

Conversation

manav113
Copy link
Member

@manav113 manav113 commented Jan 29, 2025

The PR adds support for index_prefixes mapping.

What's changed:

  1. Added a message for indexPrefixes which has min_chars and max_chars property
  2. Added PrefixFieldDef which is responsible for prefix indexing and searching.
  3. Added PrefixWrappedAnalyzer which wraps the EdgeNGramTokenFilter to generate the prefixes
  4. Changed TextFieldDef to incorporate the new field
  5. getPrefixQuery is changed to incorporate the prefix query search logic in case index_prefixes is used

@manav113 manav113 requested a review from aprudhomme January 29, 2025 20:58
Copy link
Contributor

@aprudhomme aprudhomme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is most the way there

…prefixField to TextDefField, impleting PrefixQuery in ATOM field
@manav113 manav113 requested a review from aprudhomme February 3, 2025 07:52
@manav113 manav113 marked this pull request as ready for review February 3, 2025 07:52
@manav113 manav113 requested a review from aprudhomme February 3, 2025 23:33
aprudhomme
aprudhomme previously approved these changes Feb 4, 2025
…lean field and added rewrite method for automaton query
@manav113 manav113 merged commit 49f16bc into main Feb 6, 2025
1 check passed
@manav113 manav113 deleted the patelmanav_add_index_prefixes_support branch February 6, 2025 19:10
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