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 937867EFA for ; Mon, 29 Aug 2011 19:23:06 +0000 (UTC) Received: (qmail 16002 invoked by uid 500); 29 Aug 2011 19:23:04 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 15759 invoked by uid 500); 29 Aug 2011 19:23:03 -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 15751 invoked by uid 99); 29 Aug 2011 19:23:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 19:23:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of devon.odell@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-iy0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 19:22:56 +0000 Received: by iafi7 with SMTP id i7so1090714iaf.35 for ; Mon, 29 Aug 2011 12:22:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=etonAjme24jWNgozb8O+XcAFpGjVtWjcZdI3OJY0kB4=; b=oQHpdUJDCLXxfNRo0DFA2uuWO7JLkFlqHtbtov2Fv67OyzOhVe9/Xpqp2kgmbZkbk2 eRldP1Eg8Gitcn1KExwenQB4NkUxQ+kmp0K6TKd6jkpXNP4j11KUulv952xvYlUIf94e cins415cu8LwJA1w41a6vRJ2HMfxzrhlQO2cU= MIME-Version: 1.0 Received: by 10.231.49.78 with SMTP id u14mr11181262ibf.75.1314645737349; Mon, 29 Aug 2011 12:22:17 -0700 (PDT) Received: by 10.231.251.214 with HTTP; Mon, 29 Aug 2011 12:22:17 -0700 (PDT) In-Reply-To: <00ef01cc667d$09b5db40$1d2191c0$@comcast.net> References: <00ef01cc667d$09b5db40$1d2191c0$@comcast.net> Date: Mon, 29 Aug 2011 15:22:17 -0400 Message-ID: Subject: Re: No subsearcher in Lucene 3.3? From: "Devon H. O'Dell" To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2011/8/29 Joseph MarkAnthony : > Greetings, > =A0 =A0In the past (Lucene version 2.x) I successfully used MultiSearcher= .subsearcher() to identify the searchable within a MultiSearcher to which a= hit belonged. > > In moving to Lucene 3.3, MultiSearcher is now deprecated, and I am trying= to create a standard IndexSearcher over a MultiReader. =A0I haven't gotten= this to work yet but it appears to be the correct approach. =A0However, I = cannot find any corresponding "subsearcher" method that could identify whic= h subreader is the one that finds the hit. > > For example, it used to be straightforward: > > Create a MultiSearcher over several Searchables, and call MultiSearcher.s= ubsearcher to get the searchable that holds each search hit. > > Now, I am creating an IndexSearcher over a MultiReader, which is created = over an array of IndexReaders. =A0 So when I get a hit, what's the best way= to determine which of the several subReaders the hit came from? If I'm understanding your question correctly, in the Collector, you are told which IndexReader you are working with when the setNextReader method is called. Hopefully that helps. --dho > Thanks in advance, > JMA > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org