On 5/17/06, Martin Kobele <[EMAIL PROTECTED]> wrote:
several threads add document to the same index.
As noted in the FAQ, adding documents is thread safe.
(I even synchronize my static index writer when I add documents. just to make
sure.)

However, after addind all my documents, the index does not contain all of the
documents.

We add documents via multiple threads all the time... no problems.
Are you explicitly closing the IndexWriter only *after* all of your
theads are finised adding docs?

There may also be a bug in your code that adds the 512 documents (not
synchronizing the clients properly could cause your count to be off).

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to