[Xapian-discuss] Boolean terms,

Sig Lange sig.lange at gmail.com
Tue Mar 8 20:29:45 GMT 2005


I decided to write my own indexer and search. I initially started
learning about xapian by using omega and basing ideas off it's
documentation (lack there of). I highly recommend anyone who's
starting out with xapian, to _read the xapian API_ and understand that
before progressing into omega. I feel like i'm already ages ahead of
where I was by writing my own indexer and search in python.
scriptindex and friends in omega seem to make things more complex than
they really are. But enough babble.

I've gotten everything I want so far (Probalistic searching) but still
struggle with a bit of how the code works. I am using the xapian
python bindings and have had quite the success.

So far i've talked the ability to search specific fields, such as
"artist: perfect circle", using the QueryParser and adding the
associated prefix. Also have generated unprefixed terms so look up is
also available.

One feature i'd like is to generate like terms, or search like terms..
 for instance if one types in "Mike More" and in fact his name is
indexed as "mike mour". Is there currently this sort of soundex
feature available?

Now onto boolean terms, I would like to generate a bolean genre for
each record. What woudl some code be to generate boolean terms? Is is
just a user defined prefix? How would I let the QueryParser() know. So
lets say i'm looking for "some song" in genre "punk",

I'd have a custom prefix of XGENRE, so my term would be XGENREpunk,
but how do I let the query parser know to look for "some song" in the
punk genre. Then if I wanted to search multiple genres, What would I
do?

Thanks for taking the time. To keep the posting at minimal I inclueded
multiple problems in one message. If anyone wants different i'll
seperate them.
Thanks



More information about the Xapian-discuss mailing list