On Jun 26, 2007, at 4:11 PM, Otis Gospodnetic wrote:
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?
I may be misunderstanding, but I use solrj on an existing index all
the time. I just
solr = new CommonsHttpSolrServer(new URL(url));
and then
SimpleSolrDoc solrDoc = new SimpleSolrDoc();
solrDoc.addField(field.name(), field.stringValue());
solr.add(solrDoc);
The indexes in question were created by 'normal solr' and don't get
overwritten.