Ubuntu practice Omega English link: http://trac.xapian.org/wiki/OmegaAndDebianSarge
The content of this article is to run the Omega application provided by the xapian official website on Debian or Ubuntu to see the effect.
First, add the source address in the/etc/APT/sources. List configuration file:
deb http://www.xapian.org/debian stable maindeb-src http://www.xapian.org/debian stable main
# apt-get update
Install a package required by Omega.
# apt-get install apache2 unzip antiword libwpd-tools unrtf xpdf-utils pstotext perl
Install the xapian and Omega applications.
# apt-get install xapian-omega xapian-examples xapian-tools xapian-doc
Use some RFC files for testing.
# mkdir /var/www/mytest
# cd /var/www/mytest
# Ls put a test file in this file
Git 101 Tutorial Presentation.pdf
#time omindex --db /var/lib/xapian-omega/data/default --url /mytest /var/www/mytest
In this way, the index file has been created. Now, open the browser http: // localhost/cgi-bin/Omega. You can use the FMT parameter to modify the result format.
Default:
Http://host.example.com/cgi-bin/omega/omega? P = DDD & FMt =Query
XML output:
Http://host.example.com/cgi-bin/omega/omega? P = DDD & FMt =XML
Godmode:
Http://host.example.com/cgi-bin/omega/omega? P = DDD & FMt =Godmode