What's the best way to implement a fulltext search for an ASP.NET MVC application? -


i've built asp.net mvc application mvc 2.0 , fluent nhibernate (hided behind repositories reasons). application represents quite complex domain different objects users, messages, comments, files , appointments.

now want implement fulltext search enabling user find types of content entering search phrase. when handling types of different objects in application seperately, have put them "together" search. means user makes no distinction between different types, enters "xyz" , wants results in list, comments mixed messages etc.

option 1 create search service fetches search result different repositories , prepares combined output (sorting, paging etc.). that's really, expensive when data behind grows (and grow).

so looking alternative solution. working sql server 2008. have found lucene.net (http://lucene.apache.org/lucene.net/), didn't invest time yet.

any suggestions?

i'd go sql fulltext capabilities. understand of content might available in files, other structures then, majority of data should in backend , sql fine job fulltext indexes architecture-wise.

i'd suggest start sql fulltext , create small component query other resources (if required). i'm assuming 80% of searchable content coming sql server.

here couple of resources started sql server fulltext:

  1. http://msdn.microsoft.com/en-us/library/ms142571.aspx
  2. http://www.dotnetfunda.com/articles/article1019-implementing-fulltext-search-on-view-.aspx?sms_ss=dotnetshoutout

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -