Skip to content

Commit 22c6c4d

Browse files
author
Joseph Smith
committed
Correct comment
1 parent c9672b7 commit 22c6c4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

media-api/app/lib/elasticsearch/ElasticSearch.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ class ElasticSearch(
330330
.rescore(Rescore(createMultiMatchQuery(query, operator = Or))
331331
.window(k)
332332
// We want to replace the knn score with the BM25 score,
333-
// so we can preserve the cosine similarity in a separate field
333+
// because we can calculate cosine similarity clientside,
334+
// but can't do that for BM25.
334335
.originalQueryWeight(0)
335336
.rescoreQueryWeight(1)
336337
)

0 commit comments

Comments
 (0)