c# - Search multiple Mongo columns for multiple entries -



c# - Search multiple Mongo columns for multiple entries -

i have made nice pageing scheme ajax dynamic .net, mongodb, , twitter bootstrap. works great have text box user can search , ajax/mongo driver search fields of collection , homecoming results, perfect illustration of goal can seen here @ datatables plugin. have tried few things such combing of columns or:

query.or( query.matches("name", new bsonregularexpression(query, "i")), query..matches("facility.name", new bsonregularexpression(query, "i")), etc... )

which suppose in theory way it, hopeing solution little more universal. when utilize info tables plugin linked search info no matter , organize (i realize html not db) there systematic way mongodb? 1 have pointers?

mongodb text indexes allow create text index on specific fields within document or on fields within each document. after you've created index can utilize $text operator performa search.

c# jquery .net mongodb

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -