Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

full text search all string fields in the index mongodb

//if you want to include all string fields in the index, use the '$**' wildcard:

schema.index({'$**': 'text'});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #full #text #search #string #fields #index #mongodb
ADD COMMENT
Topic
Name
5+1 =