Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
db.index({
type: 'json',
index: {
fields: [
'userID',
'type',
'fromUserID',
'toUserID',
'didView',
'mediums'
]
}
}, function(err, response) {
if (err) {
throw err
}
})
db.index({
type: 'text',
index: {
fields: [{
"name": 'tags.[]',
"type": "string"
}]
}
}, function(err, response) {
if (err) {
throw err
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.