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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -