Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0BF0317E51 for ; Thu, 8 Oct 2015 02:32:32 +0000 (UTC) Received: (qmail 35112 invoked by uid 500); 8 Oct 2015 02:32:30 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 35051 invoked by uid 500); 8 Oct 2015 02:32:30 -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 35040 invoked by uid 99); 8 Oct 2015 02:32:30 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2015 02:32:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 1B845C46BE for ; Thu, 8 Oct 2015 02:32:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zKJyr7KZFhF8 for ; Thu, 8 Oct 2015 02:32:24 +0000 (UTC) Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id D0ADB20562 for ; Thu, 8 Oct 2015 02:32:23 +0000 (UTC) Received: by oiww128 with SMTP id w128so19872527oiw.2 for ; Wed, 07 Oct 2015 19:32:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=YLAWzhGPsmCPT4XtukueLPif/26PZrVOtyfNhzJQr9A=; b=OtWkLu6l/AArA5ZIv5LFLFfEJGxnl9IJau+SV8XI1vaGnnww8Uvrsxbb4aP2/w1s9q DJA1RZUtyR+oKiMCar+nNRqU+KLIchZCL8b5BXWTPSUmy6/HvrKKkXvCJJesmWejtwhF DfYoOgpB+26JToG56b2Fp94D4mi1VxU+JCQqhbTvUDauqhpX0Jh7Xb0NCDv1W+m1DcU3 VqgSGvkq0/vDb9c6VOOkdmdp4oKL9Df+VF+1P7mwInuRlAfCHY7E8TS8m8dqZK9cRctZ GjNvPpDOVALCDLLTU6vi/MRffdAXJePnhlsXjFNwZPjcMHAp1xrahzywCNbXedgiKYOG MpTw== X-Gm-Message-State: ALoCoQmoLRowTqiolnS2dj+/+ig0s0YRQlGR7gAp6lafgn++KpdHO4tHsBTfMBl98v6bpWeZf9CT X-Received: by 10.202.11.72 with SMTP id 69mr2752692oil.110.1444271543300; Wed, 07 Oct 2015 19:32:23 -0700 (PDT) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com. [209.85.218.41]) by smtp.gmail.com with ESMTPSA id i67sm18387202oig.9.2015.10.07.19.32.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Oct 2015 19:32:22 -0700 (PDT) Received: by oibi136 with SMTP id i136so19918366oib.3 for ; Wed, 07 Oct 2015 19:32:22 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.202.75.199 with SMTP id y190mr2787694oia.116.1444271542481; Wed, 07 Oct 2015 19:32:22 -0700 (PDT) Received: by 10.76.94.137 with HTTP; Wed, 7 Oct 2015 19:32:22 -0700 (PDT) In-Reply-To: References: Date: Thu, 8 Oct 2015 13:32:22 +1100 Message-ID: Subject: Re: Recommendation for doing a search plus collecting extra information? From: Trejkaz To: Lucene Users Mailing List Content-Type: text/plain; charset=UTF-8 On Thu, Oct 8, 2015 at 1:16 PM, Erick Erickson wrote: > This may be an "XY" problem, you're asking how to do X thinking > it will solve Y without telling us what Y is. > > What do you want to _do_ with the DV values you look up for each hit? Keep them around as the ID to use to look up information later. i.e., what we used to do with the doc ID before Lucene decided the doc ID wouldn't be stable. e.g., the search happens at some point, and then later you want to render a row of a table, so you want to fetch the document. But you can't use the doc ID to do that, so we use another ID which we map back to the doc ID once we have a reader for that operation. TX --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org