Correct similarity default for 5.0 (#21144)

This commit is contained in:
Colin Goodheart-Smithe 2016-10-27 09:32:01 +01:00
parent e745015325
commit c1a9833445
1 changed files with 10 additions and 11 deletions

View File

@ -15,14 +15,14 @@ similarities. For more details about this expert options, see the
The only similarities which can be used out of the box, without any further
configuration are:
`classic`::
The Default TF/IDF algorithm used by Elasticsearch and
Lucene. See {defguide}/practical-scoring-function.html[Lucenes Practical Scoring Function]
`BM25`::
The Okapi BM25 algorithm. The algorithm used by default in Elasticsearch and Lucene.
See {defguide}/pluggable-similarites.html[Pluggable Similarity Algorithms]
for more information.
`BM25`::
The Okapi BM25 algorithm.
See {defguide}/pluggable-similarites.html[Pluggable Similarity Algorithms]
`classic`::
The TF/IDF algorithm which used to be the default in Elasticsearch and
Lucene. See {defguide}/practical-scoring-function.html[Lucenes Practical Scoring Function]
for more information.
@ -39,9 +39,9 @@ PUT my_index
"default_field": { <1>
"type": "text"
},
"bm25_field": {
"classic_field": {
"type": "text",
"similarity": "BM25" <2>
"similarity": "classic" <2>
}
}
}
@ -49,6 +49,5 @@ PUT my_index
}
--------------------------------------------------
// CONSOLE
<1> The `default_field` uses the `classic` similarity (ie TF/IDF).
<2> The `bm25_field` uses the `BM25` similarity.
<1> The `default_field` uses the `BM25` similarity.
<2> The `classic_field` uses the `classic` similarity (ie TF/IDF).