https://addons.heroku.com/#search lists some pretty cool search plugins. I’m looking for something like this for my MVC project. I want it to be:
- Fairly easy to implement
- Accurate (good results)
- Great API
- Doesn’t need full text search just searching by title (must like S/O questions)
I’m also wondering if I should just use the Google search API as it seems to be incredible accurate. I’m curious what search system stack overflow.com uses?
Thanks
You are asking for an MVC solution, I will give you one.
Implement interface ISearchable
Implement class SearchResult
Make your ViewModel implement the ISearchable interface.
Register the
ISearchableViewModels onApplication_Start, for example withUnity.Implement
SearchControllerand have Action Query.In
model.Search(), do your search through the registered ViewModels that implementISearchableinterface, use Whatever Search API that suits you best. Or do NOT use an API.The reality is, any search will serve you a moment, but when the time comes when it doesn’t serve you anymore, you can switch without breaking your implementation.
I know you asked for the “Best ASP.NET MVC Search solution”. I cannot pick any particular Product for you since I don’t know the internal workings of your solution, your budget etc.
But strictly from ASP.NET MVC perspective, the one that can be plugged into the above scenario, should be a good one. If it fits your bill, etc…