[Xapian-discuss] Replace a term in a document

James Aylett james-xapian at tartarus.org
Thu Apr 19 14:52:20 BST 2007


On Thu, Apr 19, 2007 at 12:54:29PM +0100, Olly Betts wrote:

> > Is there a simple way to change a single term (not posting) for a
> > document that is already in the database? I've tried using
> > replace_document where only a single term changes but it is very slow.
> 
> Note that this isn't an inherently slow operation though - the Document
> class could track which (if any) terms have actually been modified and
> leave the rest alone, but currently this optimisation hasn't been
> implemented - it's not been a case anyone has been concerned about the
> performance of before, as far as I can recall.

I have some possible uses in the future which I'd find this helpful
for. Mark, let us know if you create a bug entry for this, and I'll
mark that I like the idea :-)

J

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



More information about the Xapian-discuss mailing list