Aha, maybe that is what happened, thanks!
So this means there is no "switch" for "clear the index first" as there is with 
Lucene's IndexWriter, for example.  An explicit server.deleteByQuery( "*:*" ); 
is needed.

Otis

----- Original Message ----
From: Will Johnson <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Tuesday, June 26, 2007 10:16:22 PM
Subject: RE: solrj and appending to existing index

If you create a SolrServer and start adding documents you are updating
the index with new documents.  If you're id's happen to collide with
ones in the index then you will overwrite those documents but that's the
only way you could end up with less than existing docs + docs added. 

- will

-----Original Message-----
From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 26, 2007 4:12 PM
To: solr-user@lucene.apache.org
Subject: solrj and appending to existing index

Hi,

I took a quick look at solrj.  One thing I didn't find is a way to add
documents to an existing index without overwriting the index.  I looked
at the sources and the unit tests, but didn't spot the "append modus
operandi".  Ryan, or somebody, where should I look?

Thanks,
Otis





Reply via email to