In my code when operation is "add" it works correctly on a multivalue field. But no multivalue field can be deleted with "remove" operation. The add operation adds a value to a multivaled field. The remove operation removes a value from a multivalued field.
If you believe that something is not working, please state clearly why you believe that something is not working. Start by describing the symptom. -- Jack Krupansky On Mon, Jul 6, 2015 at 9:22 PM, Mohsen Saboorian <mohs...@gmail.com> wrote: > 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? >