Search on multiple fields full text


(Abhay garg) #1

Actually we have multiple collections like Users, Tasks , Jobs , Events. All this data is stored in Elastic Search. I use mongoosastic . And when I save into MongoDB using mongoose plugin in NodeJS then it automatically insert into a index by it model name
Ex: If I add into user then in ElasticSearch it adds user collection into user alias . We save Users, Events , Jobs , Tasks right now

Lets suppose anybody search "abhay sikandrabad " now we wants that first it find in all collections user,tasks,jobs,events "abhay sikandrabad" it may be present in any field username , description etc in any fields. Like in description: "hi I am living in Sikandrabad" and his username:"abhaygarg12493" then this result comes


(system) #2