-
-
Save tannerlinsley/34d6f3511efd2a74ec49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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