Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 67559 invoked from network); 22 Jun 2006 07:37:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2006 07:37:26 -0000 Received: (qmail 93593 invoked by uid 500); 22 Jun 2006 07:37:19 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 93564 invoked by uid 500); 22 Jun 2006 07:37:19 -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 93550 invoked by uid 99); 22 Jun 2006 07:37:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 00:37:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mbraun@uni-hd.de designates 129.206.210.211 as permitted sender) Received: from [129.206.210.211] (HELO relay2.uni-heidelberg.de) (129.206.210.211) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2006 00:37:18 -0700 Received: from serv25.ub.uni-heidelberg.de (serv25.ub.uni-heidelberg.de [147.142.186.75]) by relay2.uni-heidelberg.de (8.12.10/8.12.10) with ESMTP id k5M7d2vj023518 for ; Thu, 22 Jun 2006 09:39:02 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by serv25.ub.uni-heidelberg.de (Postfix) with ESMTP id 756EA2C05A for ; Thu, 22 Jun 2006 09:36:54 +0200 (CEST) Received: from [147.142.85.36] (pers16.ub.uni-heidelberg.de [147.142.85.36]) by serv25.ub.uni-heidelberg.de (Postfix) with ESMTP id 4B2F62C059 for ; Thu, 22 Jun 2006 09:36:53 +0200 (CEST) Message-ID: <449A4894.4080808@uni-hd.de> Date: Thu, 22 Jun 2006 09:36:52 +0200 From: Martin Braun Reply-To: mbraun@uni-hd.de User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Search within multiple different subfolders References: <359a92830606200551s15c249ccq31f269486deb7578@mail.gmail.com> <20060621055449.87796.qmail@web50409.mail.yahoo.com> <359a92830606210617n1b6b0be3vcf0a28beb2c79c0f@mail.gmail.com> In-Reply-To: <359a92830606210617n1b6b0be3vcf0a28beb2c79c0f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: at ub.uni-heidelberg.de X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi, > > I'm hardly the lucene expert, but I don't think you can search just a > portion of the index. But that's effectively what you're doing if you > restrict the search to "son and.....". I think there is also the possibility to write a custom search filter (org.apache.lucene.search.Filter), and to build a bitset with a special field providing the information from which dir the file comes from. But I am wondering which is the better solution according to performance? > But I also have to ask, why are you trying to "search only a portion of the > index"? If you haven't encountered a bottleneck that's forcing you into Perhaps for privacy reasons? that only specific users should be able to search the whole index. Is there a best practice approach to realize this? thx, martin -- Universitaetsbibliothek Heidelberg Tel: +49 6221 54-2580 Ploeck 107-109, D-69117 Heidelberg Fax: +49 6221 54-2623 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org