[Xapian-discuss] updated.size()
Olly Betts
olly at survex.com
Tue Feb 17 23:36:13 GMT 2009
On Wed, Feb 18, 2009 at 04:22:14AM +1030, Frank J Bruzzaniti wrote:
> I took come code from http://trac.xapian.org/ticket/285. It seems to
> work but I don;t understand what size has to do with it.
>
> line 17408:
> if (docid < updated.size()) {
> updated[docid] = true;
> return;
Before indexing starts, updated is resized to include the highest
existing document id so if docid >= updated.size() it's a new document
not an updated one.
Cheers,
Olly
More information about the Xapian-discuss
mailing list