We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc9f973 commit 329f41eCopy full SHA for 329f41e
backend/resources/db-migration/mongodb/1640761844872_replace-fulltext-indexes-DONE.js
@@ -0,0 +1,34 @@
1
+/* ****** Bookmarks ****** */
2
+// delete old index
3
+db.bookmarks.dropIndex("full_text_search");
4
+
5
+//recreate index
6
+db.bookmarks.createIndex(
7
+ {
8
+ name: "text",
9
+ location: "text",
10
+ description: "text",
11
+ tags: "text",
12
+ sourceCodeURL: "text",
13
+ },
14
15
+ weights: {
16
+ name: 13,
17
+ location: 8,
18
+ description: 5,
19
+ tags: 21,
20
+ sourceCodeURL: 3
21
22
+ name: "full_text_search",
23
+ default_language: "none",
24
+ language_override: "none"
25
+ }
26
+);
27
28
+/* ****** Snippets ****** */
29
30
+db.snippets.dropIndex("full_text_search");
31
32
+//recreate
33
34
0 commit comments