Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 20017 invoked from network); 4 Mar 2006 04:02:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Mar 2006 04:02:20 -0000 Received: (qmail 26766 invoked by uid 500); 4 Mar 2006 04:03:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 26735 invoked by uid 500); 4 Mar 2006 04:03:02 -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 26724 invoked by uid 99); 4 Mar 2006 04:03:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 20:03:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 20:03:01 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 988085B766; Fri, 3 Mar 2006 20:02:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 8D09E7F403 for ; Fri, 3 Mar 2006 20:02:40 -0800 (PST) Date: Fri, 3 Mar 2006 20:02:40 -0800 (PST) From: Chris Hostetter To: Lucene Users Subject: Re: Search on many indexes at once In-Reply-To: Message-ID: References: <50f433360603030946x76e995b3ha4dd9edfe1beadb3@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N : It looks like I don't have access to the searcher.subSearcher or subDoc, : since I get just a Hits object. Is it possible to know the Index folder : based on a hit? As i understand it (like i said: i've never used these methods) the doc id returned by Hits.id() is what you pass to subSearcher to find out which index it came from. : I'm on a SearchResults component that takes a Hits object as parameter : and the search is actually performed by other component. It sounds like the API you are working with abstracts away the MultiSearcher so you don't have access to it once you get the Hits object. I think that makes it just about impossible to get the info you want. I guess you either need to add a "doctype" field to all of the indexes, or deduce the doctype based on what fields are in each doc, or change the API you are using to give you access to the info you need. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org