I just spotted one thing looking at the unit test
org.apache.solr.client.solrj.SolrExampleTestBase

SolrServer server = getSolrServer();
// Empty the database...
server.deleteByQuery( "*:*" );// delete everything!

This is here purely for testing purposes and only so that we know what
is in the index prior to running the rest of the tests (namely nothing).
It's not at all required and probably not really recommended as a best
practice. :)

- will



-----Original Message-----
From: Will Johnson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 26, 2007 4:16 PM
To: solr-user@lucene.apache.org
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