Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 4128 invoked from network); 10 Jun 2004 13:17:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jun 2004 13:17:52 -0000 Received: (qmail 14621 invoked by uid 500); 10 Jun 2004 13:17:44 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 14463 invoked by uid 500); 10 Jun 2004 13:17:40 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 14239 invoked by uid 99); 10 Jun 2004 13:17:38 -0000 Received: from [192.33.215.142] (HELO expasy-ng.isb-sib.ch) (192.33.215.142) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 10 Jun 2004 06:17:38 -0700 Received: from [10.0.0.195] (lin-000 [192.33.215.254]) (authenticated bits=0) by expasy-ng.isb-sib.ch (8.12.10/8.12.8) with ESMTP id i5ADHQ16020373 for ; Thu, 10 Jun 2004 15:17:26 +0200 Message-ID: <40C85F6F.1080700@isb-sib.ch> Date: Thu, 10 Jun 2004 15:17:35 +0200 From: Eric Jain User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: lucene-user Subject: CachedQuery Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-sib-MailScanner-Information: Please contact the ISP for more information X-sib-MailScanner: Found to be clean X-sib-MailScanner-From: eric.jain@isb-sib.ch X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I noticed that searching for terms that appear in a significant number of documents tends to be relatively slow. For example foo AND (bar:yes OR xyz) where every document has a field 'bar' with a value of either 'yes' or 'no'. Had a look at CachingWrapperFilter, unfortunately this class doesn't seem to be any help here. Perhaps I need to create a CachedQuery class that caches Weight objects for wrapped Query objects (and subclass QueryParser to make use of this)? But would this work? Any ideas? --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org