Skip to content

Commit dab4864

Browse files
committed
fix(mongodb-constants): add text.matchCriteria to template COMPASS-8601
1 parent 51d310b commit dab4864

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/mongodb-constants/src/stage-operators.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ const STAGE_OPERATORS = [
900900
description: 'Performs a full-text search on the specified field(s).',
901901
comment: `/**
902902
* index: The name of the Search index.
903-
* text: Analyzed search, with required fields of query and path, the analyzed field(s) to search.
903+
* text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.
904904
* compound: Combines ops.
905905
* span: Find in text field regions.
906906
* exists: Test for presence of a field.
@@ -912,7 +912,8 @@ const STAGE_OPERATORS = [
912912
index: '\${1:string}',
913913
text: {
914914
query: '\${2:string}',
915-
path: '\${3:string}'
915+
path: '\${3:string}',
916+
matchCriteria: '\${4:any}',
916917
}
917918
}`,
918919
},

0 commit comments

Comments
 (0)