[Xapian-devel] Document ID 0 is invalid... but not always...
Richard Boulton
richard at lemurconsulting.com
Tue May 15 13:16:06 BST 2007
Daniel Ménard wrote:
> Note: this is rather long and not very important and I don't want to
> prevent the team from releasing version 1.0, so go on reading only if
> you have too much free time !!! ;-)
>
> 0 is not a valid document ID, never, ever, but I just found a special
> case in which xapian will create a record and return 0 for the newly
> created record.
>
> In fact, I was "hacking", trying to store metadata in a "special" record
> with docId "-1"...
> I know, this is bad, but what is interesting is what xapian does in such
> a situation...
Hmm - this should probably be added as a bug to the issue tracker - we
should detect the overflow and report and appropriate error.
--
Richard
More information about the Xapian-devel
mailing list