• Zur Hauptnavigation springen
  • Skip to main content
  • Zur Fußzeile springen

Sebastian Mogilowski's Blog

Just another blog about administration, linux and other stuff

  • Home
  • Contact
  • Imprint
  • Projects & HOWTOs
  • Publications

Your own search engine part 2: web interface

8. Mai 2020 by sebastian 1 Kommentar

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:

Kategorie: Allgemein

Leser-Interaktionen

Trackbacks

  1. Your own search engine with Apache Nutch 1.16 on Debian 10 sagt:
    8. Mai 2020 um 08:16 Uhr

    […] For a search engine like webinterface read this: https://www.mogilowski.net/2020/05/08/your-own-search-engine-part-2-webinterface/ […]

    Antworten

Schreibe einen Kommentar Antworten abbrechen

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

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

Footer

Kategorien

  • Allgemein
  • Coldfusion
  • Development
  • Fun
  • General
  • Home automation
  • Homematic
  • Linux
  • Mobile
  • PHP
  • Privat
  • Systemadministration
  • Virtualization
  • Windows
  • Zaurus

© 2021 · Sebastian Mogilowski's Blog · Powered by Imagely