[Xapian-discuss] Working Demo for WWW Search Engine

Kevin SoftDev kevin.softdev at gmail.com
Tue Feb 28 21:22:21 GMT 2006


Step 1 - Export all fields from mydb and mytable
================================================
suse: DBUSER=user DBPASSWORD=password dbi2omega mydb mytable > inputfile
(inputfile)
...
url=http://yahoo.com
title=Yahoo Search Engine
body=Yahoo test content text, one

url=http://google.com
title=Google Search Engine
body=Google test content text, two

url=http://altavista.com
title=Alta Vista
body=Alta Vista test content text, three


Step 2. - Create indexscript file
================================================
(indexscript)
url   : unique=Q weight=2 field=url
title : index    weight=3 field=title
body  : index    weight=1 field=body

Step 3. - Create index directory /x1
          and run scriptindex
================================================
suse: scriptindex /x1 indexscript inputfile
records (added, replaced, deleted) = (3, 0, 0)


Step 4. - Search for terms
==============================================
suse: quest -d /x 'two'
2 [100%]
body=Google test content text, two
title=Google Search Engine
url=http://google.com
PS: Please let me know if you have a better idea. Thanks!
Kevin Duraj
http://pacific-design.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tartarus.org/pipermail/xapian-discuss/attachments/20060228/e9b2edee/attachment.htm


More information about the Xapian-discuss mailing list