Skip to content

Commit d65e7f7

Browse files
authored
Update ace autocompleter to 0.4.11 with search snippet update (#168)
1 parent 1e66047 commit d65e7f7

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@
868868
"mocha": "^7.0.1",
869869
"mocha-junit-reporter": "^1.23.3",
870870
"mocha-multi": "^1.1.3",
871-
"mongodb-ace-autocompleter": "^0.4.9",
871+
"mongodb-ace-autocompleter": "^0.4.11",
872872
"mongodb-js-precommit": "^2.2.1",
873873
"mongodb-runner": "^4.8.0",
874874
"node-loader": "^0.6.0",

snippets/stage-autocompleter.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
" into: '${1:string}',",
222222
" on: '${2:string}',",
223223
" let: '${3:specification(s)}',",
224-
" whenMatched: '${4:string}'",
224+
" whenMatched: '${4:string}',",
225225
" whenNotMatched: '${5:string}'",
226226
"}"
227227
],
@@ -311,19 +311,21 @@
311311
"MongoDB Aggregations $search": {
312312
"prefix": "$search",
313313
"body": [
314-
"/**",
315-
" * search: Analyzed search.",
316-
" * term: Unanalyzed search.",
314+
"/** ",
315+
" * index: the name of the Search index.",
316+
" * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search.",
317+
" * term: Un-analyzed search.",
317318
" * compound: Combines ops.",
318319
" * span: Find in text field regions.",
319320
" * exists: Test for presence of a field.",
320321
" * near: Find near number or date.",
321322
" * range: Find in numeric or date range.",
322323
" */",
323324
"\\$search: {",
325+
" index: '${1:string}',",
324326
" text: {",
325-
" query: '${1:string}',",
326-
" path: '${2:string}'",
327+
" query: '${2:string}',",
328+
" path: '${3:string}'",
327329
" }",
328330
"}"
329331
],

0 commit comments

Comments
 (0)