[Xapian-discuss] Query Parser, filenames and compound words

Ted Jordan ted at qtis.co.nz
Fri Dec 30 00:43:22 GMT 2005


When I submit a filename to the query parser it breaks it up 

Example: 

/home/user/file_name.ext

becomes

Xapian::Query((home:(pos=1) PHRASE 5 user:(pos=2) PHRASE 5 file:(pos=3) PHRASE 
5 name:(pos=4) PHRASE 5 ext:(pos=5)))

which does not find the document.

If I do an single term query not using the query parser then I find the 
document.

The Query Parser also breaks up hyphenated terms

Example:

open-minded

becomes

Xapian::Query((open:(pos=1) PHRASE 2 minded:(pos=2)))

instead of 

Xapian::Query((open-minded:(pos=1))

which does not find the indexed term "open-minded"

Any ideas would be much appreciated.

Thanks,
-Ted.






More information about the Xapian-discuss mailing list