Sebastian Mogilowski's Blog

Just another blog about administration, linux and other stuff

Your own search engine part 2: web interface

Please read part 1 first.

Once we have built the search engine, we need a nice web interface for it.

I created a simple one with AJAX Solr.

You can download it here: search.tar.gz

Just put it on any web server like Apache or NGINX.

Settings:

In ‚lib/nutch.js‘ you can configure your solr server:

solrUrl : 'http://127.0.0.1:8983/solr/nutch/'

For the browser plugin, first find this line in ‚index.html‘:

<link title="Search" type="application/opensearchdescription+xml" rel="search" href="http://search/search.xml" />

and this one in ’search.xml‘:

<Image>src="http://search/favicon.ico"</Image>
<Url type="text/html" template="http://search/index.html?q={searchTerms}" />

You need to change the URLs to your correct server URL. And feel free to change page name and title or replace the logo, as well.

Here is an preview of the advanced search window:

2 thoughts on “Your own search engine part 2: web interface

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

eMail-Benachrichtigung bei weiteren Kommentaren.
Auch möglich: Abo ohne Kommentar.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre, wie deine Kommentardaten verarbeitet werden.