Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9123955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:27:48+00:00 2026-06-17T06:27:48+00:00

https://addons.heroku.com/#search lists some pretty cool search plugins. I’m looking for something like this for

  • 0

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:

  1. Fairly easy to implement
  2. Accurate (good results)
  3. Great API
  4. 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T06:27:49+00:00Added an answer on June 17, 2026 at 6:27 am

    You are asking for an MVC solution, I will give you one.

    Implement interface ISearchable

    interface ISearchable{
        SearchResult Search(string query);
    }
    

    Implement class SearchResult

    public class SearchResult{
        SearchResult(string title, string url, string description, int rank){
            this.Title = title;
            this.Url = url;
            this.Description = description;
            this.Rank = rank;
        }
        public string Title { get; set; }
        public string Url { get; set; }
        public string Description { get; set; }
        public int Rank { get; set; }
    }
    

    Make your ViewModel implement the ISearchable interface.

    public class MyViewModel : ISearchable{
        public List<Article> Articles { get; set; }
    
        #region ISearchable
        public SearchResult Search(string query){
            string title = "";
            string url = "";
            string description = "";
            int rank = 0;
            // Custom logic to search for an article
            ...
            return new SearchResult(title, url, description, rank);
        }
        #endregion
    }
    

    Register the ISearchable ViewModels on Application_Start, for example with Unity.

    Implement SearchController and have Action Query.

    public ActionResult Query(SearchQueryModel model){
       model.Search();
       return View(model);
    }
    

    In model.Search(), do your search through the registered ViewModels that implement ISearchable interface, 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…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

https://search.twitter.com/search.json?q=doug How do I read this like VIEW SOURCE, so that I know what
As per https://postgres.heroku.com/blog/past/2012/4/26/heroku_postgres_development_plan/ I did heroku addons:add heroku-postgresql:dev. But when I do class CreateUsers
UPDATE 9th june 2012: Setup with mongoid 3.0.0.rc at heroku, see this gist: https://gist.github.com/2900804
I want to install wordpress on heroku and follow this tutorial(https://github.com/mhoofman/wordpress-heroku) I downloaded the
I'm running this in the URL: https://www.googleapis.com/shopping/search/v1/public/products?key=thekey&country=US&q=xbox+360&alt=json This gives me output like: { kind:
I recently signed up for Heroku's Redis To Go https://addons.heroku.com/redistogo . For now, I'm
https://auth.me.com/authenticate On this website when you type in your email address , the font-size
https://i.stack.imgur.com/bRXcy.png This image is a 78*24 image of the alphabet, with each letter in
I stumbled upon this add-on which Ajaxifies parts of its target website. https://addons.mozilla.org/en-US/firefox/addon/51789 I
ON MAC OS X 1.7.2 I tried following the instructions https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres So I tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.