You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Atlas only. Only views containing $addFields, $set or $match stages with the $expr operator are compatible with search indexes. searchStage description.'
80
+
'Atlas only. Only views containing $match stages with the $expr operator, $addFields, or $set are compatible with search indexes. searchStage description.'
81
+
)
82
+
).to.exist;
83
+
});
84
+
85
+
it('renders the correct descriptions for $search stage in readonly view with 8.0 version',()=>{
'Atlas only. Requires MongoDB 8.1+ to run on a view. To use a search index on a view on MongoDB 8.0, query the view’s source collection sourceName. searchStage description.'
82
96
)
83
97
).to.exist;
84
98
});
85
99
86
100
it('renders the correct descriptions for $search stage in readonly view with incompatible version',()=>{
`Atlas only. Requires MongoDB ${minVersionCompatibility}+ to run on a view. To use a search index on a view on MongoDB 8.0, query the view’s source collection ${sourceName}. `+
89
+
stage.description
90
+
);
91
+
}
92
+
72
93
return(
73
-
`Atlas only. Requires MongoDB ${minMajorMinorVersion}+ to run on a view. `+
94
+
`Atlas only. Requires MongoDB ${minVersionCompatibility}+ to run on a view. `+
74
95
stage.description
75
96
);
76
97
}
77
98
78
99
if(!isPipelineSearchQueryable){
79
100
return(
80
-
`Atlas only. Only views containing $addFields, $set or $match stages with the $expr operator are compatible with search indexes. `+
101
+
`Atlas only. Only views containing $match stages with the $expr operator, $addFields, or $set are compatible with search indexes. `+
0 commit comments