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

Update 101 and 912 CompletionPostingFormats to use off-heap FST load mode #123011

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ChrisHegarty
Copy link
Contributor

Identical to that of Lucene's Completion101PostingsFormat, except that we flip the default to FSTLoadMode.OFF_HEAP.

These implementations reuse the exact same format name as that of the formats provided by the org.apache.lucene.suggest module. In effect they "override" the formats provided by that module, since Lucene's NamedSPILoader only uses the first service for each name found, later services will be ignored. So once we find the ES versions first, then they will be used rather than the Lucene ones.

…heap

Identical to that of Lucene's Completion101PostingsFormat, except that we flip the default to FSTLoadMode.OFF_HEAP
@ChrisHegarty
Copy link
Contributor Author

ChrisHegarty commented Feb 20, 2025

In all of my local testing these ES formats are always found first.

Screenshot 2025-02-20 at 11 23 17

@elasticsearchmachine elasticsearchmachine added v9.1.0 needs:triage Requires assignment of a team area label labels Feb 20, 2025
@ChrisHegarty ChrisHegarty changed the title Update 101 and 912 CompletionPostingFormats to use FST load mode off heap Update 101 and 912 CompletionPostingFormats to use off-heap FST load mode Feb 20, 2025
@ChrisHegarty ChrisHegarty added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch :Search Foundations/Search Catch all for Search Foundations and removed needs:triage Requires assignment of a team area label labels Feb 20, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine
Copy link
Collaborator

Hi @ChrisHegarty, I've created a changelog YAML for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants