lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohsen Saboorian <>
Subject Remove operation of partial update doesn't work
Date Tue, 07 Jul 2015 01:22:13 GMT
I can partially 'add' fields to my Solr index, but 'remove' operation seems
not working. I'm on Solr 4.10. Here is my SolrJ snippet:

            SolrInputDocument doc = new SolrInputDocument();
            Map<String, Object> partialUpdate = new HashMap<>();
            partialUpdate.put(operation, value); // value can be object
(string, number, etc) or list. operation can be add, set or remove.
            doc.addField("id", id); // document id
            doc.addField(fieldName, partialUpdate);

            getSolrServer().add(doc, commitWithin);

Is there anything wrong with my code?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message