This topic got my immediate interest when reading a chapter (16) in Linux by Steve Oualline and Eric Foster-Johnson called “Setting Up a Search Engine”. As a creator of web content, who wouldn’t want to know something about this subject? Well, Daffy Duck for one! Yeah … well … as a creator of web content, and excluding Daffy Duck, who wouldn’t want to know something about this subject? How about Elmer Fudd?! Yeah … okay … well … point taken … as a creator of web content, and excluding Daffy Duck and Elmer Fudd, who wouldn’t want to know something about this subject … and before you say Bugs Bunny let me just say that carrots result in curiosity regarding webservers, and search engines in particular? How ’bout Bugs Bunny?! Gghhheeeeese!
Anyway that got me into htdig (regarding local search engine, the emphasis being local … we’re not claiming this as a Google or Yahoo or Bing … but this can be good for a intranet scenario, just as one example of its use) which I’ve no doubt has worked well for lots of people but the Xcode environments now make it harder to work … tried it, but it ended in a dead end, so did some further research, after getting my dog to lick my wounds … she’s awfully good at that … and came up with a website mentioned in the blurb below that led me to an Open Source product called Indri, which appears excellent. Have a look below at what (ended up) working on a local Apache MAMP webserver with Mac OS X 10.9 Mavericks (at the Terminal application’s Bash command line environment), and we’ll probably revisit this area of webserver web work (www … chortle, chortle) … perhaps to link it to a URL … would highly recommend reading up on it at some/all of the links below.
Here is an example of an XML query file that works with Indri you could call queries.xml … and thanks for stopping by today’s tutorial posting. Will leave you with a link to htdig thoughts, because it might work for you, and if it had worked for me, would be now showing you the results of what would happen in MAMP if we’d gone to URL http://localhost:8888/search.html
If this was interesting you may be interested in this too.