diff options
author | Militsa Sotirova <militsa.sotirova@mongodb.com> | 2023-03-22 20:24:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-22 20:51:53 +0000 |
commit | 40eae593bfb458304ce1c75e9ffb44d3b804d6b1 (patch) | |
tree | 8698160bf8d4889abf57b334bd5d9418f6aacb77 /src | |
parent | 43d4dc54f9e317cd8661eafe399e7902b88a16e0 (diff) | |
download | mongo-40eae593bfb458304ce1c75e9ffb44d3b804d6b1.tar.gz |
SERVER-71307 Collation must be simple for search and searchMeta
Diffstat (limited to 'src')
-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 31dfa831976..dec9cc80eab 100644 --- a/src/mongo/db/pipeline/expression_context.h +++ b/src/mongo/db/pipeline/expression_context.h @@ -451,6 +451,11 @@ public: return _requiresTimeseriesExtendedRangeSupport; } + // 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; |