lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject Re: overwriting entries when indexing
Date Wed, 30 Mar 2011 11:41:55 GMT
Have you defined a uniqueKey in your schema?

http://wiki.apache.org/solr/SchemaXml#The_Unique_Key_Field


On Wednesday 30 March 2011 13:16:02 Carl-Erik Herheim wrote:
> Hi list,
> I've got a multi-core solr index that is indexed through solrj. The
> problem is that already existing documents don't get overwritten when
> they are re-indexed. This means we have to empty the index whenever we
> want to update it, which isn't really an option. From what I've been
> reading I was under the impression that documents get overwritten by
> default, but that doesn't seem to be the case. Is there anything I can
> do to force overwriting?
> The way we index it now is (to put it simply):
> CommonsHttpSolrServer.add(List<SolrInputDocument>)
> 
> Any help appreciated, thanks!
> 
> - Carl-Erik

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

Mime
View raw message