Skip to content

Commit

Permalink
#1692: Ceate & edit index: Fix for not working "text weights"
Browse files Browse the repository at this point in the history
  • Loading branch information
simsekgokhan committed Jun 7, 2020
1 parent dbda800 commit e892601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robomongo/core/mongodb/MongoClient.cpp
Expand Up @@ -210,7 +210,7 @@ namespace Robomongo
optionsBuilder.append("language_override", newInfo._languageOverride);

if (!mongo::Robomongo::fromjson(newInfo._textWeights).isEmpty())
optionsBuilder.append("weights", newInfo._textWeights);
optionsBuilder.append("weights", mongo::Robomongo::fromjson(newInfo._textWeights));

if (newInfo._ttl > 0)
optionsBuilder.append("expireAfterSeconds", newInfo._ttl);
Expand Down

0 comments on commit e892601

Please sign in to comment.