[Xapian-discuss] Avoiding "stale" Search Results

Miki Tebeka miki at fattoc.com
Wed May 20 14:24:17 BST 2009


Hello Olly,

> > Once I have the result set I can get the SearchResult objects from it.
> Um, there isn't a class called "SearchResult" in Xapian.
Sorry, my bad. I'm using xappy on top of xapian.
 
> > Is there a way to tell xapain to cache locally the SearchResult objects so
> > I won't need to call db.reopen() all the time?
> The main reason readers don't lock the revision is that nobody has
> implemented it.  There's also the issue that it makes it very easy to
> inadvertently bloat the database with lots of old revisions.  I'm not
> sure there's a way to avoid that.
I don't want to keep old revisions around in the database, just in the
result returned from a search.



More information about the Xapian-discuss mailing list