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

Cedric Jeanneret cedric.jeanneret at camptocamp.com
Thu Nov 12 07:24:20 GMT 2009


Oh, thank you, Olly.

Best regards,

C.

On Wed, 11 Nov 2009 23:37:06 +0000
Olly Betts <olly at survex.com> wrote:

> On Wed, Nov 11, 2009 at 02:47:59PM +0100, Cedric Jeanneret wrote:
> > 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..
> 
> At index time, serialise the data you want to store to get a string (in Python,
> you'd probably just pickle it) and the store it with Document.set_data().
> 
> Then at search time, you unpickle the string retrieved by get_data() on the
> Document object.
> 
> Cheers,
>     Olly


-- 
Cédric Jeanneret                 |  System Administrator
021 619 10 32                    |  Camptocamp SA
cedric.jeanneret at camptocamp.com  |  PSE-A / EPFL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.xapian.org/pipermail/xapian-discuss/attachments/20091112/4e5c66ea/attachment.pgp>


More information about the Xapian-discuss mailing list