-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Extensible Completion Postings Formats #111494
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
Merged
JVerwolf
merged 48 commits into
elastic:main
from
JVerwolf:enhancement/make-fst-on-heap-configurable
Nov 28, 2024
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
a76cb4d
Make completion postings format extensible
JVerwolf 3a317a8
Spotless
JVerwolf f62a7a7
Spotless
JVerwolf ee4604d
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf c664739
Update docs/changelog/111494.yaml
JVerwolf 4343eea
Fix docs
JVerwolf 35eaba5
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf a088ae9
Make completion postings format extensible
JVerwolf 322d176
Spotless
JVerwolf a88ead0
Spotless
JVerwolf 4fcb416
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf c9eed64
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf fc94a32
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 4a80fe3
Allow PostingsFormatExtension to be configured by serverless
JVerwolf da464b7
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 070d451
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf f243893
Simplify names and logic
JVerwolf 377759c
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 13b926a
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf bbf06c9
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 40fb72f
Update license header
JVerwolf 943047d
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf c91c23d
Add javadoc
JVerwolf d1f4403
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf ade1546
Improve javadoc
JVerwolf a80e744
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 86d0f7c
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 56e2c5c
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 8858d39
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf e4659c2
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf f8a0c51
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 616dee8
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 35f66e8
PR Feedback: remove feature
JVerwolf 2f16043
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 70f2143
PR Feedback: remove export and move format
JVerwolf 23186f6
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf ae2a0af
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 2ab57cb
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf add1089
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 3f6a72e
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf a5a60ee
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 7d1d145
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 93db5b2
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 5a90785
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 3abc777
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf 3e80ca9
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf c3da22f
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf ba4a91c
Merge branch 'main' of github.com:elastic/elasticsearch into enhancem…
JVerwolf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 111494 | ||
| summary: Extensible Completion Postings Formats | ||
| area: "Suggesters" | ||
| type: enhancement | ||
| issues: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
server/src/main/java/org/elasticsearch/internal/CompletionsPostingsFormatExtension.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the "Elastic License | ||
| * 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
| * Public License v 1"; you may not use this file except in compliance with, at | ||
| * your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
| * License v3.0 only", or the "Server Side Public License, v 1". | ||
| */ | ||
|
|
||
| package org.elasticsearch.internal; | ||
|
|
||
| import org.apache.lucene.search.suggest.document.CompletionPostingsFormat; | ||
|
|
||
| /** | ||
| * Allows plugging-in the Completions Postings Format. | ||
| */ | ||
| public interface CompletionsPostingsFormatExtension { | ||
javanna marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| /** | ||
| * Returns the name of the {@link CompletionPostingsFormat} that Elasticsearch should use. Should return null if the extension | ||
| * is not enabled. | ||
| * <p> | ||
| * Note that the name must match a codec that is available on all nodes in the cluster, otherwise IndexCorruptionExceptions will occur. | ||
| * A feature can be used to protect against this scenario, or alternatively, the codec code can be rolled out prior to its usage by this | ||
| * extension. | ||
| */ | ||
| String getFormatName(); | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.