note: it's not safe to change between disparate similarity modules, changing these two BM25 settings is ok, but changing anything which modifies what gets stored in the index will obviously require a full reindex, see the link above for more info.
This PR is, by default, a no-op, but allows us to experiment with the k1 and b settings.
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 https://github.com/pelias/schema/issues/408