[Xapian-discuss] How to index html pages with real URL links

Olly Betts olly at survex.com
Sat Feb 25 22:14:58 GMT 2006


On Sat, Feb 25, 2006 at 12:21:33PM -0800, Kevin SoftDev wrote:
> However I was not able to figure out how to index html pages and instead of
> having stored link from hard disk location like
> /home/kevin/public_html/programming.html get some meaningful URL link
> instead like http://pacific-design.com/programming.html

Just tell omindex the URL which corresponds to the start directory, e.g.:

omindex --db /path/to/database --url http://pacific-design.com \
    /home/kevin/public_html

Or if the search itself runs on pacific-design.com, you might prefer to
omit the hostname from all URLs:

omindex --db /path/to/database --url / /home/kevin/public_html

Cheers,
    Olly



More information about the Xapian-discuss mailing list