From java-user-return-64032-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Fri Sep 21 03:23:35 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id A9B3C180671 for ; Fri, 21 Sep 2018 03:23:34 +0200 (CEST) Received: (qmail 62669 invoked by uid 500); 21 Sep 2018 01:23:33 -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 Received: (qmail 62650 invoked by uid 99); 21 Sep 2018 01:23:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Sep 2018 01:23:32 +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 053C0180102 for ; Fri, 21 Sep 2018 01:23:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.888 X-Spam-Level: * X-Spam-Status: No, score=1.888 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=-0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cs_av16EZaft for ; Fri, 21 Sep 2018 01:23:31 +0000 (UTC) Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2188E5F18F for ; Fri, 21 Sep 2018 01:23:31 +0000 (UTC) Received: by mail-qk1-f173.google.com with SMTP id f62-v6so7334200qke.2 for ; Thu, 20 Sep 2018 18:23:31 -0700 (PDT) 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=E/y/Pu+NA2s1e75pk0oDiV+yciNeWrQHatlVw9724ac=; b=En0ImZ9zmNHtiPehgAiTUxf3nsND0saPqnDZhO6lF1+wxbsaG9/OPzsra8ttOd0lN8 YFUIqa/ZKLzE5VvKLvuOKCSmUV4DuWXe7YQKrmVTlWy76MGD4/9fgIUyThNYwGJPjHGI t2UCaTUs0Y9RLpEIhq6ukLAmzqY64H2Dyszxw/1DkMI4csIO9GgnJ4EA3eAwf3kWGSfS wJCX4YGsDHn2OGXMtcJg4Q+J+xeMf8Ve6sL9FFgI2ABHpeSeZgoPwFyu3rBi1VHeTber x99ozOVrI1ytI5pmRiO2S7cXoR21OEcsHrqk2mdpaDNcVUf9etTGRDoubdu53HdA0ZMx 4HEQ== 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=E/y/Pu+NA2s1e75pk0oDiV+yciNeWrQHatlVw9724ac=; b=lreAif+LbM/IU3RnE3S7NLXxtpfAmKgJnJqicOOa4w7QrNAKHGlOUa5nbrijUNUZ4L 8Ug8bjLY/TxQRY4jcnR61tfRb9MaRAP9XeZFQ8gRuN9iePiN2SwxrdyqWAeqMCXhjapV s/ceiFAb3jLFxBg9AOoUKVuoduKQGxoTzgvsf34VvdIHZrYJw5azbeyZJgEVmX0ch8QK 0cqxwaOaRKjLMjSZU9mQZPHe6UPn88lp89KFvh7lF1D/xj/Ha30koMF4RBkFRVhCA5Xm CoqT3LcLpTIhk+mSvc4DO4jtexLzUUfcYzv+esaG28IRgiMmF6YDuK4w3tmW7tNZrQOS hPSw== X-Gm-Message-State: APzg51BwfbdJ2EaccSiUcudZkqfZdSpfKDmtWvDCsOYdTsGoBEr6T8Jk VRdiCNPtjJ0ks/GCKyQw5uEbcDsr3J9a+AdJnnuoOPNR X-Google-Smtp-Source: ANB0VdaDYS8N1/j1C9k1MPK+k5KFh3TWdzUaEMVypGXyAJeV3PnEzHhpZr/lcpPqLUYHHrQHblMyF9U67bihc1TLv1s= X-Received: by 2002:a37:1519:: with SMTP id f25-v6mr1343825qkh.268.1537493010656; Thu, 20 Sep 2018 18:23:30 -0700 (PDT) MIME-Version: 1.0 From: Lisheng Zhang Date: Thu, 20 Sep 2018 18:23:19 -0700 Message-ID: Subject: How to access DocValues inside a customized collector? To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary="000000000000beb2d20576577cf8" --000000000000beb2d20576577cf8 Content-Type: text/plain; charset="UTF-8" we need to use binary DocValues (in a customized collector) added during indexing, i first tested in standard TopScoreDocCollector, it seems that we need to: LeafReaderContext => reader() => get binary iterator => advanced to correct location Is this the correct way or actually we have a better API (since we already in that docId it seems to me that the binary DocValues should be readily available? Also do we have a way to see directly indexed data (Luke seems obsolete, Marple does not work with lucene 7.4.0 yet)? Thanks very much for helps, Lisheng --000000000000beb2d20576577cf8--