I Need a Good Search Box
November 16, 2013 10:44 AM   Subscribe

I have a website that has 50 pages, each containing the text of a different US state constitution. I want a search box that gives me the option to search all 50 constitutions at once (Entire Site) for all mentions of that term OR lets me search a single constitution (Alabama) for all mentions of that term. The box I'm currently using only allows one result of the term per constitution. So the entire site search give a max of 50 results, and a single state search gives a max of 1 result. And Google Custom Search freezes. Do I have to build one or is one available commercially that I can customize and plug in?
posted by CollectiveMind to Computers & Internet (6 answers total)
 
Solr could handle that, but if you have cheap shared hosting I don't think you'll be able to install Solr.
posted by COD at 11:25 AM on November 16, 2013


What are these 50 pages in? Is it just... flat HTML?
posted by DarlingBri at 11:34 AM on November 16, 2013


I think you need to elaborate on what "Google Custom Search freezes" means.

I am all about coding things from scratch, but search is one thing you *really* don't want to re-invent the wheel with. Even just a literal link to google.com with "site:[yoursite.com]" as a parameter should get the job done, unless I'm missing something.
posted by drjimmy11 at 2:23 PM on November 16, 2013


If each constitution is a single web page then the visitor can just press Ctrl-F and the browser will search the current page.
posted by XMLicious at 9:02 PM on November 16, 2013


You could try hosted ElasricSearch (such as Qbox.io) if you want to pay, or Atomz if you don't mind ads.
posted by Dansaman at 9:15 PM on November 16, 2013


Response by poster: DarlingBri, yes flat HTML.
drjimmy, something about Windows 7 that Google Custom Search doesn't like. Every time I try to copy the code, the site freezes. It seems to be an issue from 2009 that still hasn't been fixed.
Dansaman, Atmoz will return all references to a word in a search, not just a single one?
posted by CollectiveMind at 9:29 PM on November 16, 2013


« Older Debit card compromised: what should I do besides...   |   Tech that can run Adobe Suite, that is cheap... Newer »
This thread is closed to new comments.