James Aylett
2007-Aug-09 10:38 UTC
[Xapian-discuss] Is there any way to modify the value of documentsaved ago?
*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@tartarus.org uncertaintydivision.org
John Wards
2007-Aug-09 11:07 UTC
[Xapian-discuss] Is there any way to modify the value of documentsaved ago?
On Thu, 2007-08-09 at 10:38 +0100, James Aylett wrote:> *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.Would it not be better to set the reply to email address to the list address as even the *best* of us forget to hit reply all sometimes :)
James Aylett
2007-Aug-09 11:55 UTC
[Xapian-discuss] Is there any way to modify the value of documentsaved ago?
On Thu, Aug 09, 2007 at 11:06:44AM +0100, John Wards wrote:> > *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. > > Would it not be better to set the reply to email address to the list > address as even the *best* of us forget to hit reply all sometimes :)I intensely dislike mailing lists that do this, for various reasons. It makes it harder to *deliberately* do an off-list reply. Personally, I feel that having a few incorrect off-list responses is much better than having any incorrect on-list responses. J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
Sungsoo Kim
2007-Aug-10 05:21 UTC
[Xapian-discuss] Re: Re: Is there any way to modify the value ofdocumentsaved ago?
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@tartarus.org> wrote in message news:20070809093815.GB29333@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@tartarus.org uncertaintydivision.org