[Xapian-discuss] [python indexer] add meta informations

Tom tom at lemurconsulting.com
Wed Nov 11 13:57:08 GMT 2009


2009/11/11 Cedric Jeanneret <cedric.jeanneret at camptocamp.com>:
> Hello,
>
> I'm trying to index some blog stuff through python bindings.
>
> I'd like to know how to add some informations (url, title, date, and so on) so that I can reach them through a xapian.Enquire object..
> I believe it's something to be set in xapian.TermGenerator(), but... I can't manage to find which function. I'm waiting for something like :
> xtermgen.add_meta('url', 'value')
>
> but.. well, as you imagine, I can't find which function to use.

Hi Cedric,

Since you're using Python, you might want to take a look at Xappy,
which provides a higher-level interface to Xapian and lets you work
with named fields rather than terms etc.

http://code.google.com/p/xappy/

regards,
Tom



More information about the Xapian-discuss mailing list