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.
This PR adds a
peliasDefaultSimilarity
similarity module and configures it with the defaults forBM25
(making this a no-op).The advantage of using a custom similarity over using the default (which is also
BM25
) is that the values ofk1
andb
can be configured.One way of changing the
BM25
settings is via editingpelias.json
before creating the index as such:Alternatively it seems possible to avoid reindexing an existing index by simply closing the index, changing the setting and reopening it:
This PR is, by default, a no-op, but allows us to experiment with the
k1
andb
settings.connected to #408