lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Johnson" <wjohn...@GETCONNECTED.COM>
Subject RE: solrj and appending to existing index
Date Tue, 26 Jun 2007 20:19:40 GMT
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:wjohnson@getconnected.com] 
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:otis_gospodnetic@yahoo.com] 
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



Mime
View raw message