-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
ALL
-
I am getting the same text search score for two documents.
Searched phrase is: "https://docs.mongodb.com/manual/tutorial/avoid-text-index-name-limit/""
db.getCollection('UrlDoc').find({ $text:
{ $search: "https://docs.mongodb.com/manual/tutorial/avoid-text-index-name-limit/" }}, { score:
{ $meta: "textScore" }}).sort( { score:
{ $meta: "textScore" }} )
Found two documents with the same score (6) with phrases:
"https://docs.mongodb.com/manual/tutorial/avoid-text-index-name-limit/""
"https://docs.mongodb.com/manual/tutorial/avoid-text-index-name-limit"
As I think, first score should be greater than second.
See screenshot.