Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 42068 invoked from network); 30 Sep 2005 16:25:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Sep 2005 16:25:42 -0000 Received: (qmail 56325 invoked by uid 500); 30 Sep 2005 16:25:37 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 56292 invoked by uid 500); 30 Sep 2005 16:25:37 -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 56281 invoked by uid 99); 30 Sep 2005 16:25:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2005 09:25:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.225.129] (HELO ehatchersolutions.com) (69.55.225.129) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2005 09:25:41 -0700 Received: by ehatchersolutions.com (Postfix, from userid 504) id 7BFB813E2005; Fri, 30 Sep 2005 12:25:12 -0400 (EDT) Received: from [128.143.167.108] (d-128-167-108.bootp.Virginia.EDU [128.143.167.108]) by ehatchersolutions.com (Postfix) with ESMTP id 2178013E2007 for ; Fri, 30 Sep 2005 12:24:51 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <20050930094557.GC39885@jdevoff.zssm.zp.ua> References: <20050929123419.GA26688@jdevoff.zssm.zp.ua> <9ba0336c05092905395a76099a@mail.gmail.com> <20050929124624.GB26688@jdevoff.zssm.zp.ua> <20050930094557.GC39885@jdevoff.zssm.zp.ua> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7ABE5D30-BD4B-4A70-BDDC-5A41A191AE53@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Lucene vs SQL database Date: Fri, 30 Sep 2005 12:22:53 -0400 To: java-user@lucene.apache.org X-Mailer: Apple Mail (2.734) X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on javelina X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sep 30, 2005, at 5:45 AM, Eugeny N Dzhurinsky wrote: > On Thu, Sep 29, 2005 at 08:56:50AM -0400, Erik Hatcher wrote: > >>> of only allowed data... But if Lucene needs to index anything, >>> how > >>> >> could I > >define the access privileges for data? >> > > >> There are many options available. One such technique I described in >> "Lucene in Action" ... a SecurityFilter. >> > > This SecurityFilter is implementation of the Filter, right? > As I found, the Filter defineds the bits() method, and I should > implement some > capacities to return set of bits, where first bit means first found > document, > and if it is set to 1 - document will be shown, otherwise if 0 - it > will not > be shown, right? That is exactly correct. The source code to the SecurityFilter is found in the .zip file you can download from http:// www.lucenebook.com - and it wouldn't hurt our feelings one bit if you bought the book too :) Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org