Ok. Then what is the difference between addField <http://github.com/apache/lucene-solr/tree/lucene_solr_5_3_1/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java#L150> & setField <http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/common/SolrInputDocument.html#setField-java.lang.String-java.lang.Object-float-> ?
On Sat, Dec 19, 2015 at 1:04 PM, Andrea Gazzarini <a.gazzar...@gmail.com> wrote: > As far as I know, this is how Solr works (e.g. it replaces the whole > document): how do you replace only a part of a document? > > Just send a SolrInputDocument with an existing (i.e. already indexed) id > and the document (on Solr) will be replaced. > > Andrea > > 2015-12-19 8:16 GMT+01:00 Debraj Manna <subharaj.ma...@gmail.com>: > > > Can someone let me know how can I replace a document on each update in > Solr > > 5.2.1 using SolrJ? I don;t want to update parts of the document. On doing > > update it should replace the entire document. > > >