Mongo create full text index example

1 · Adrian Matei · Feb. 15, 2021, 11 p.m.
Project: codever - File: 1586782890001_add-codelets-indexes-DONE.js Full text search is supported in Mongo by using a text index. Text indexes can include any field whose value is a string, or an array of string elements, to which you can give weights. For a text index, the weight of an indexed field denotes the significance of the field relative to the other indexed fields in terms of the text search score. db.snippets.createIndex( { title: "text", tags: "text", "codeSnippets....