[Xapian-discuss] Contextual search via xapian

Denis Kuzmenok forward_ua at ukr.net
Wed Jul 16 11:47:46 BST 2008


>> Example:

> I'm sorry - I still don't understand what you're actually doing, and 
> what you were expecting or would like to happen.

> It's probably a language issue, but the easiest way around this is for
> you to give step-by-step instructions on what you're doing, together 
> with what you'd expect to happen.  For example:

> Step 1: make a subdirectory to contain data, called "data".

> Step 2: put the following contents into a text file, called "data/data.txt":

> Nokia today introduced their latest thin profile S40 handset to the 
> world. The new 6500 Classic, housed in anodized aluminum, measures only
> 9.5mm (.37") in thickness and weighs only 94g (3.3oz). Nokia says that
> the polished finish on each individual 6500 Classic will be different,
> making sure that no two phones are exactly alike. The display front face
> also gets the benefit of some polishing, but in this case it is done 
> with diamonds.

> Step 3: run omindex with the following command "./omindex --db db data/"
> Got the following output, as expected:

> omindex: --url not specified, assuming `/'.
> [Entering directory /]
> Indexing "/data.txt" as text/plain ... added.


> etc.  Give us enough information so that we can see what you're doing,
> and we'll be much more likely to be able to help.

I'll try:)

Step 1: retrieve all product names from database and index them with
omega, for example:
Nokia N73 bronze
Nokia N73 black music edition
Nokia N73 music edition
Nokia N73 music edition bronze
Nokia N73 plum silver
Nokia N73 red white

Step 2: receive request to find products in text with the same order,
for example:
A generous 2GB mini-SD card capable of storing up to 1500 songs and a
new music interface are at the core of Nokia's upgrade of the N73, the
Nokia N73 Music Edition. The handset is the same in all other areas including 3G support, a large and clear display and a 3.2 megapixel camera with a Carl Zeiss Lens combining to make it an attractive, all purpose media device.

Step 3: make a query and receive results:
"Nokia N73 music edition", as the only one that is found in the text
in the same order, "Nokia N73 music edition bronze" should not be
found cos it should be fully matched, "Nokia N73 black music edition"
also, cos the order is not the same..

Markus Peter is almost right. Find keywords in text that fully match,
all words in the same order. But not commercial project, project like
wiki, to have links in text that point to an article with that
keywords






More information about the Xapian-discuss mailing list