[Xapian-discuss] Feature request: Ligthen pressure on backup

James Aylett james-xapian at tartarus.org
Mon Mar 24 23:19:39 GMT 2008


On Mon, Mar 24, 2008 at 05:37:45PM +0100, Jesper Krogh wrote:

> > Note that if you ascribe external meaning to Xapian document ids (for
> > instance referencing them in a relational database), you may need to
> > change things a little (such as by bringing external ids into Xapian
> > and storing them in the document data, ie reversing the dependency)
> > because of the way multiple database support is implemented.
> 
> This is excactly what I do. Can you elaborate a bit more on this?
> 
> I currently do put in the database-id into the document, but it doesn't 
> serve any purpose. I do put in an unique term into the term-set of the 
> documents that make replace-by-term work flawlessly. Can I preserve this 
> during a merge (that I have a "unique-term" in the documents)?

Unique terms aren't affected by merging documents (although you need
to think about how they'll work while writing the new databases). I
mean if you take the *Xapian* document id and store that externally,
you'll have problems (you just shouldn't do that in most cases).

J

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



More information about the Xapian-discuss mailing list