Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31185185D3 for ; Tue, 7 Jul 2015 01:22:46 +0000 (UTC) Received: (qmail 40836 invoked by uid 500); 7 Jul 2015 01:22:42 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 40768 invoked by uid 500); 7 Jul 2015 01:22:42 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 40756 invoked by uid 99); 7 Jul 2015 01:22:41 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 01:22:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 437D51827F2 for ; Tue, 7 Jul 2015 01:22:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4M0R1d3_Nz1C for ; Tue, 7 Jul 2015 01:22:40 +0000 (UTC) Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 268F8428DB for ; Tue, 7 Jul 2015 01:22:40 +0000 (UTC) Received: by wgqq4 with SMTP id q4so154739903wgq.1 for ; Mon, 06 Jul 2015 18:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=1K34v5pilezaNlWyNB8ztbLW2iKtHrEVcbjsUrQYzMM=; b=rA25cNsfG56Tzx5MTyCLiCOE5Ww7OVEp1JblK/lcCHSosMoYthPkwMyTnal9rS43RH ge+qf5dfkQDEhq+yZxo681MCkBdYXb30/mhiG7rvBZ+Lojgz/MVpw+Bees9+lZphgDhk vnoWW52W2oBWxw6iwADDLSuzjoxABg8AKT80Ga7R4M1g2tN7TUUOYFKZ1bpxkJBcSeSh tN9/W8bKqy9Y2/cbXEkVuOodxzcOASZshqw93xedHFLy0IOV1b5MMJ0CNvRiYKj9WnI6 YFhfMeC+/jtGLiUOeq9YFyY0kVmleet/GBa+8b6sw+YLcs5gsBX8SO4Ip0j/8d5ljLb2 0khQ== X-Received: by 10.180.89.66 with SMTP id bm2mr97423834wib.6.1436232152912; Mon, 06 Jul 2015 18:22:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.72.194 with HTTP; Mon, 6 Jul 2015 18:22:13 -0700 (PDT) From: Mohsen Saboorian Date: Tue, 7 Jul 2015 05:52:13 +0430 Message-ID: Subject: Remove operation of partial update doesn't work To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=f46d0444ec5b4a1686051a3edb69 --f46d0444ec5b4a1686051a3edb69 Content-Type: text/plain; charset=UTF-8 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 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? --f46d0444ec5b4a1686051a3edb69--