Search code examples
searchsolrfull-text-searchsearch-enginegoogle-custom-search

Add search feature to simple website without mySQL database


I have a simple HTML site with 100+ pages or so. I want to add a search bar at the top so the user can search the site. I know about Google Custom Search, but it shows ads unless you pay at least $100. Obviously I'd like ad-less search on my site for free if at all possible!

I've also heard about Lucene/Solr, but they do not actually crawl the site. For that I would apparently need Nutch.

Anyway, the site I have runs on a Microsoft IIS6 server, but I have basically no knowledge as to how Solr, Nutch, etc. gets "installed" on the server.

Also: I'd like to point out that I do have a local copy of the site. Perhaps I can do one big initial nutch "crawl" locally that will create an .xml for Solr?? That would help me get "up and running", but probably wouldn't be a good long-term solution.

..so should I just use Google Custom Search? or is there a not-extremely-painful-to-implement alternative? The brain hurts folks.


Solution

  • You did not mention how many search requests you want to handle but if you use the json-rest-api of google's custom search you have 100 searchqueries a day for free and you can display them without any ads on your page.

    An simple example request can be found here.