Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 97851200C92 for ; Mon, 12 Jun 2017 16:05:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 96267160BD9; Mon, 12 Jun 2017 14:05:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DC330160BD6 for ; Mon, 12 Jun 2017 16:05:28 +0200 (CEST) Received: (qmail 22537 invoked by uid 500); 12 Jun 2017 14:05:27 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Delivered-To: moderator for java-user@lucene.apache.org Received: (qmail 22380 invoked by uid 99); 12 Jun 2017 14:05:05 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.897 X-Spam-Level: X-Spam-Status: No, score=-0.897 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=oZU/sv7a0leJ4N26cmlWMnI9Fu3ib7AePPrL2Dl55pY=; b=SktuFNVdu+Fe5ZpmlPQL8udXvt4LkPxzq+2WcgoZByxifNoKszvQPA55KplP7qIP/i kFuGZUXtg7ItQwc2Ga2a6MiB5i0QiPv0Y9M94A+OjfRjBXIJLedHQdX+j3pCFm0XNoYf hD2T8vdVzAh+qqL19QwQppQUkWs/mBUTN0r0KyZXydDq2qstkF0gcrvDRoM7RPh4TsL5 /KWcjC2aj6HuhasSSz+QYTb30Y4HPU6S8oX37XQekOrd/SbwCKn+rtlm+5rfnJ2+AWv2 bE3/UWL96nJOffPC6+IiPh0jHK84JVfgbmq9nh0ksrAkvitAmzXKlyyo3pNU5ZBeishU 6E5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oZU/sv7a0leJ4N26cmlWMnI9Fu3ib7AePPrL2Dl55pY=; b=GOOT0de3VcZFXhbHPb6mQUrxUxqLH/eeuKIUSIKIiGagaKHZn56RcsjDO4MS6sAMAz Aj61cX/qySZPOIMlMwn7FgbfdMoOt7gYyMa9X1S5Si3WBFW5HJY2NQQWim5dfEqZ+BKr cAzBjyX6xnXBT3G3RUJFjbP+ldqlYrQKXOKwX8imxjXPhPmn4FTT7e22eLufoe48F6fG YeNFrgD4cx63/ZuEjolv7oIn49NasGgq4mlMjqRqn8AzK9ohkxIVgxj7TF+7669s9QcV yf8657xemm1AWduTFs7wiO1d13dr6z33ovlL06Zh4KH1495BWj7XkYaGivAgJbdbuJvu j86A== X-Gm-Message-State: AKS2vOzI4yUf02xEhxI1+9G154Hep0LZa63ZkUOdLHpnC3mYxRyL06cs EyAJSagcZ8vfOSCrjbOcRVA9XYQBHPf3 X-Received: by 10.28.136.196 with SMTP id k187mr1040462wmd.103.1497276303081; Mon, 12 Jun 2017 07:05:03 -0700 (PDT) MIME-Version: 1.0 From: Joe Ye Date: Mon, 12 Jun 2017 15:05:02 +0100 Message-ID: Subject: Updating the DocValues field doesn't seem to update its associated StoredField value To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary="001a11441f362d08340551c3ce8a" archived-at: Mon, 12 Jun 2017 14:05:29 -0000 --001a11441f362d08340551c3ce8a Content-Type: text/plain; charset="UTF-8" Hi, I have a few NumericDocValuesField fields and also added separate StoredField fields to store the values so that I can access them in query results. I used IndexWriter.updateNumericDocValue to update the value of a DocValues field. Then I firstly called SearcherManager.maybeRefresh to ensure SearcherManager.acquire will return refreshed instances and used DocValuesNumbersQuery with the updated value. I did get the matching document in the query result but when I tried to access its value using Document.get, it's still the old value. It appears that updating the DocValues field doesn't update its associated StoredField value. What do I miss here? I would highly appreciate your help! Regards, Joe --001a11441f362d08340551c3ce8a--