[Xapian-discuss] Re: Re: Is there any way to modify the value ofdocumentsaved ago?

Sungsoo Kim xingshou at gmail.com
Fri Aug 10 05:20:44 BST 2007


Thank you for your kind reply!

I need the same function as Hightman asked.

In general RDBMS we can change values in a certain field very easily
and get query results sort by the field.

Xapian's value can be thought as field of RDBMS, even thought not 
exactly same, and can be used to sort the search result.

Therefore I also ask this requirement can be considered in the future 
release. It will be very useful to Xapian users.



Sungsoo Kim



"James Aylett" <james-xapian at tartarus.org> wrote in message news:20070809093815.GB29333 at tartarus.org...
*Please* keep discussions on-list. There are many more people who can
help, that way, and the discussion is archived for use by future users.

On Thu, Aug 09, 2007 at 08:35:47AM +0800, Hightman(马明练) wrote:

> Actually, these values will be updated are all have a static length,
> and I can get the document id by the unique indexed term
> (Xapian::Database::postlist_begin) .  So if we can get the real
> offset for these values in the database file, update these values
> will be possible and simple.

It isn't a flat file though - it's a btree on disk. You might be able
to use the internal flint library to access and update things, but no
one's ever tried this to my knowledge. We don't install the header
files, so you'll have to hack around a bit to get this to work - and
if we change the database format in future, or the internal API,
you'll have to redo your work. However if you need the greater speed,
this may be the only solution.

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org


More information about the Xapian-discuss mailing list