Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js mongoose text index

var schema = new Schema({
  name: String,
  email: String,
  profile: {
    something: String,
    somethingElse: String
  }
});
schema.index({name: 'text', 'profile.something': 'text'});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #js #mongoose #text #index
ADD COMMENT
Topic
Name
3+4 =