These are chat archives for Automattic/mongoose

21st
Feb 2016
antonioaltamura
@antonioaltamura
Feb 21 2016 14:14
guys I should be able to query the collection using every field (some of them cointains long text) what do you think it's a good way to handle that? index:true to all the fields? and what about the text indexes? something like:
schema.index({ smalltext: 1,smalltext2:1, hugetext: 'text', veryhugetext: 'text' });
antonioaltamura
@antonioaltamura
Feb 21 2016 14:22
also, i'm not clear with the limit of using 1 text index in mongoose, here I can't see any reference about this limit https://docs.mongodb.org/manual/tutorial/create-text-index-on-multiple-fields/