<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid20061204194837.GF21562@survex.com" type="cite">
  <pre wrap="">Docid 0 is invalid - the returned docids should start at 1.  Perhaps
that's what you meant, but I thought I should clarify.
  </pre>
</blockquote>
Yes, sorry my mistake.<br>
<blockquote cite="mid20061204194837.GF21562@survex.com" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">So instead of having 10 sub-indexes with 50 documents in each,
document_id:s ranging from 0-50 in each, I seem to end up with 10
sub-indexes with 50 documents in each, document_id:s ranging from 0-49
in subindex 1, 50-99 in subindex 2, and so on. This would not be a
problem if writabledatabase_add_document() returned these globally
incrementing document_id:s, but it doesn't.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
When you search over a combination of databases, the document ids are
simply interleaved to avoid clashes.  You can easily reverse the
formula used:

<a class="moz-txt-link-freetext" href="http://article.gmane.org/gmane.comp.search.xapian.general/1375">http://article.gmane.org/gmane.comp.search.xapian.general/1375</a>
  </pre>
</blockquote>
Good to know. I figured this out after a while. Sorry for spamming down
the mailing list with redundant questions.<br>
<blockquote cite="mid20061204194837.GF21562@survex.com" type="cite">
  <pre wrap="">
When writing, you're just accessing the docids in a single database.  It
would be feasible to allow writing to multiple database managed by a
single object, but nobody's yet done the work required to support this.
There was some discussion of that in this thread:

<a class="moz-txt-link-freetext" href="http://thread.gmane.org/gmane.comp.search.xapian.general/3464">http://thread.gmane.org/gmane.comp.search.xapian.general/3464</a>
  </pre>
</blockquote>
I have implemented exactly that in my xapian index class, but its php
only of course. Perhaps something I could submit to the xapian wiki
pages later?&nbsp; Not until I have tested it out a bit more so I know its
stable though.<br>
<br>
Thanks<br>
Alec<br>
<blockquote cite="mid20061204194837.GF21562@survex.com" type="cite">
  <pre wrap="">
Cheers,
    Olly

  </pre>
</blockquote>
</body>
</html>