Search your own website with xapian's omega
Actually this HOWTO already exists :)
-> http://wiki.xapian.org/OmegaExample
Download and install omega and xapian from xapian.org. This is a regular autotooled software install:
(cd
Then, basic doc is under omega-
Here is what worked for me:
I have put the omega files under my public_html.
mkdir -p ~/public_html/omega/var/log/omega
mkdir -p ~/public_html/omega/var/lib/omega/data
mkdir -p ~/public_html/omega/var/lib/omega/templates
mkdir p ~/public_html/omega/var/lib/omega/cdb
cp OMEGA_SRC_DIR/omega-0.9.6/templates/* ~/public_html/omega/var/lib/omega/templates/
chmod -R a+r ~/public_html/omega/var/lib/omega/templates/
chmod -R 755 ~/public_html/omega/
# Now we start the indexation:
omindex --db ~/public_html/omega/var/lib/omega/data/default --url http://FULLY_QUALIFIED_HOSTNAME/~bsergean/mailarchives ~bsergean/public_html/mailarchives
# Now we install the cgi and its config file
cp /usr/local/lib/omega/bin/omega ~/public_html/cgi-bin/omega.cgi
cat > ~/public_html/cgi-bin/omega.conf
database_dir /home/bsergean/public_html/omega/var/lib/omega/data
template_dir /home/bsergean/public_html/omega/var/lib/omega/templates
log_dir /home/bsergean/public_html/omega/var/log/omega
cdb_dir /home/bsergean/public_html/omega/var/lib/omega/cdb
Hit Control D now.
That's it !!
Now, go to http://FULLY_QUALIFIED_HOSTNAME/~bsergean/cgi-bin/omega.cgi
and make your search.
0 Comments:
Post a Comment
<< Home