diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2020-01-27 14:06:08 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-27 14:06:08 +0000 |
commit | 4bb2ad4c48c07d267c98f5443e0984a5e1ef7209 (patch) | |
tree | e2b7efa1a5bfb77c4de56cc25677015ec1f686bd /src/mongo/db/fts | |
parent | eca08e963444d77209f093a6137f5d70f7519e21 (diff) | |
download | mongo-4bb2ad4c48c07d267c98f5443e0984a5e1ef7209.tar.gz |
SERVER-45363 Base weight for text index on exact match not possible match
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r-- | src/mongo/db/fts/fts_element_iterator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/fts/fts_element_iterator.cpp b/src/mongo/db/fts/fts_element_iterator.cpp index c9666f0834a..00c0dd39134 100644 --- a/src/mongo/db/fts/fts_element_iterator.cpp +++ b/src/mongo/db/fts/fts_element_iterator.cpp @@ -143,7 +143,7 @@ FTSIteratorValue FTSElementIterator::advance() { // Is the current field an exact match on a weight? bool exactMatch = (possibleWeightMatch && i->first == dottedName); - double weight = (possibleWeightMatch ? i->second : DEFAULT_WEIGHT); + double weight = (exactMatch ? i->second : DEFAULT_WEIGHT); switch (elem.type()) { case String: |