diff options
author | Militsa Sotirova <militsa.sotirova@mongodb.com> | 2023-03-23 13:08:48 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-23 13:34:03 +0000 |
commit | cf8792ea4ff3b0ab50c7779b1a44680a4bb9ce56 (patch) | |
tree | 86934a793857a1425b8c2509c54626a18b3f24bf | |
parent | a6dd4fddbb0a3b6dcd4fb1b9001f674f757ed9f6 (diff) | |
download | mongo-cf8792ea4ff3b0ab50c7779b1a44680a4bb9ce56.tar.gz |
SERVER-71307 Collation must be simple for search and searchMeta
-rw-r--r-- | src/mongo/db/pipeline/expression_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/expression_context.h b/src/mongo/db/pipeline/expression_context.h index 232df5486a3..32289466640 100644 --- a/src/mongo/db/pipeline/expression_context.h +++ b/src/mongo/db/pipeline/expression_context.h @@ -431,6 +431,11 @@ public: // expression counting. bool enabledCounters = true; + // Returns true if the resolved collation of the context is simple. + bool isResolvedCollationSimple() const { + return getCollatorBSON().woCompare(CollationSpec::kSimpleSpec) == 0; + } + protected: static const int kInterruptCheckPeriod = 128; |