Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 45949 invoked from network); 31 Jul 2006 13:34:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jul 2006 13:34:30 -0000 Received: (qmail 22613 invoked by uid 500); 31 Jul 2006 13:34:22 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 22513 invoked by uid 500); 31 Jul 2006 13:34:22 -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 22502 invoked by uid 99); 31 Jul 2006 13:34:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 06:34:22 -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 [17.250.248.176] (HELO smtpout.mac.com) (17.250.248.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 06:34:20 -0700 Received: from mac.com (smtpin04-en2 [10.13.10.149]) by smtpout.mac.com (Xserve/8.12.11/smtpout06/MantshX 4.0) with ESMTP id k6VDXxRn026563 for ; Mon, 31 Jul 2006 06:34:00 -0700 (PDT) Received: from [127.0.0.1] (216-12-26-38.va.mvl.ntelos.net [216.12.26.38]) (authenticated bits=0) by mac.com (Xserve/smtpin04/MantshX 4.0) with ESMTP id k6VDXtGZ010470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 31 Jul 2006 06:33:58 -0700 (PDT) Message-ID: <44CE064C.5090107@mac.com> Date: Mon, 31 Jul 2006 09:31:56 -0400 From: "Michael J. Prichard" User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Filters or BooleanQuery Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is more of a design question. I have a ton of email that is indexed. I need to search based on a date range so I use a RangeQuery added to a BooleanQuery to search. This works. Now I need to include another clause that will narrow the result even more. AND on top of that I will need some security applied to the search that will not show email to those that it does not belong to. I could easily go through and add query's but I have a feeling I should use a filter somewhere. What are the best practices when deciding what to do? Thanks, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org