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:
[…] For a search engine like webinterface read this: https://www.mogilowski.net/2020/05/08/your-own-search-engine-part-2-webinterface/ […]