[Xapian-discuss] Document values vs data

Peter Karman peter at peknet.com
Fri Jan 1 14:15:53 GMT 2010


Garrett Smith wrote on 1/1/10 7:31 AM:
> In a recent post, someone asked about storing "metadata" in a
> document. My guess would have been to use add_value. Olly's
> recommendation was to use set_data.
> 
> What are the general guidelines for deciding whether to use values or
> data in a document?
> 

values can be used for sorting and filtering results.
data is arbitrary storage associated with a document.

where you store your metadata depends on how you intend to use it.

-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Xapian-discuss mailing list