search for: documentnotfound

Displaying 2 results from an estimated 2 matches for "documentnotfound".

2023 Aug 28
1
DatabaseModifiedError while iterating on mset
...my $end = retry_reopen(sub { $mset->end }); for (; $cur != $end; retry_reopen(sub { $cur++ })) { ... } And similar for C++. On the other hand, modifications to existing documents are not common in my use cases (but possible) so I've never noticed errors while though an MSet. I suppose DocumentNotFound errors can also happen while iterating an MSet if a writer is deleting documents, too, right? > If you call methods like get_doclength() which need to consult the > database those could throw. OK, will do. Thanks.
2023 Aug 27
1
DatabaseModifiedError while iterating on mset
On Wed, Aug 23, 2023 at 01:53:27PM +0000, Eric Wong wrote: > I'm already retrying the ->get_mset operations; but now I'm > wondering where I'd hit DatabaseModifiedErrors while inside a > Xapian::MSetIterator loop. > > I assume ->get_document is a place where it gets thrown; > but once a document is retrieved, can iterating through > terms in one document