Skip to content

Possible error in similarity documentation #46058

@pablogps

Description

@pablogps

Regarding the similarity documentation, it is explained how we may use TFIDF or BM25 by including a "similarity" option when creating a field. However, this results in an error:

The [classic] similarity may not be used anymore. Please use the [BM25] similarity or build a custom [scripted] similarity instead.

This seems consistent with this old discussion:
Disallow the classic (TF-IDF) similarity on 6.0 indices.

Perhaps this other discussion finally offered an alternative:
Add a scripted similarity.

It seems like the documentation should be updated to reflect these changes. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search Relevance/RankingScoring, rescoring, rank evaluation.>docsGeneral docs changesTeam:Search RelevanceMeta label for the Search Relevance team in Elasticsearch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions