Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 763986E1E for ; Sun, 26 Jun 2011 18:34:13 +0000 (UTC) Received: (qmail 28087 invoked by uid 500); 26 Jun 2011 18:34:11 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 27838 invoked by uid 500); 26 Jun 2011 18:34:11 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 27811 invoked by uid 99); 26 Jun 2011 18:34:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 18:34:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2011 18:34:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B0C34432C14 for ; Sun, 26 Jun 2011 18:33:47 +0000 (UTC) Date: Sun, 26 Jun 2011 18:33:47 +0000 (UTC) From: "Michael McCandless (JIRA)" To: dev@lucene.apache.org Message-ID: <1384302561.41799.1309113227720.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <980549920.17901.1308396467334.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3212) Supply FilterIndexReader based on any o.a.l.search.Filter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-3212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055146#comment-13055146 ] Michael McCandless commented on LUCENE-3212: -------------------------------------------- That's a good point -- I'm not sure why I didn't just override getDeletedDocs! It seems like that should work fine. > Supply FilterIndexReader based on any o.a.l.search.Filter > --------------------------------------------------------- > > Key: LUCENE-3212 > URL: https://issues.apache.org/jira/browse/LUCENE-3212 > Project: Lucene - Java > Issue Type: Improvement > Components: core/index, core/search > Affects Versions: 4.0 > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Fix For: 4.0 > > > When coding LUCENE-2919 (PKIndexSplitter), Mike and me had the idea, how to effectively apply filters on the lowest level (before query execution). This is very useful for e.g. security Filters that simply hide some documents. Currently when you apply the filter after searching, lots of useless work was done like scoring filtered documents, iterating term positions (for Phrases),... > This patch will provide a FilterIndexReader subclass (4.0 only, 3.x is too complicated to implement), that hides filtered documents by returning them in getDeletedDocs(). In contrast to LUCENE-2919, the filtering will work on per-segment (without SlowMultiReaderWrapper), so per segment search keeps available and reopening can be done very efficient, as the filter is only calculated on openeing new or changed segments. > This filter should improve use-cases where the filter can be applied one time before all queries (like security filters) on (re-)opening the IndexReader. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org