diff options
Diffstat (limited to 'src/mongo/db/query/stage_builder.cpp')
-rw-r--r-- | src/mongo/db/query/stage_builder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/query/stage_builder.cpp b/src/mongo/db/query/stage_builder.cpp index dcd21b27f35..caf108aa019 100644 --- a/src/mongo/db/query/stage_builder.cpp +++ b/src/mongo/db/query/stage_builder.cpp @@ -285,6 +285,7 @@ PlanStage* buildStages(OperationContext* opCtx, // planning a query that contains "no-op" expressions. TODO: make StageBuilder::build() // fail in this case (this improvement is being tracked by SERVER-21510). params.query = static_cast<FTSQueryImpl&>(*node->ftsQuery); + params.wantTextScore = (cq.getProj() && cq.getProj()->wantTextScore()); return new TextStage(opCtx, params, ws, node->filter.get()); } case STAGE_SHARDING_FILTER: { |