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
Post a Comment