Return-Path: Delivered-To: apmail-lucene-java-commits-archive@www.apache.org Received: (qmail 31983 invoked from network); 14 Apr 2009 11:11:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2009 11:11:24 -0000 Received: (qmail 56487 invoked by uid 500); 14 Apr 2009 11:11:24 -0000 Delivered-To: apmail-lucene-java-commits-archive@lucene.apache.org Received: (qmail 56417 invoked by uid 500); 14 Apr 2009 11:11:23 -0000 Mailing-List: contact java-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-commits@lucene.apache.org Received: (qmail 56408 invoked by uid 99); 14 Apr 2009 11:11:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 11:11:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 11:11:14 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 45CEB118BC for ; Tue, 14 Apr 2009 11:10:53 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: java-commits@lucene.apache.org Date: Tue, 14 Apr 2009 11:10:53 -0000 Message-ID: <20090414111053.14148.57168@eos.apache.org> Subject: [Lucene-java Wiki] Update of "ImproveSearchingSpeed" by TokeEskildsen X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification. The following page has been changed by TokeEskildsen: http://wiki.apache.org/lucene-java/ImproveSearchingSpeed The comment on the change is: Recommended profiling ------------------------------------------------------------------------------ It can be much more efficient to restrict results to a part of the index using a cached bit set filter rather than using a query clause. This is especially true for restrictions that match a great number of documents of a large index. Filters are typically used to restrict the results to a category but could in many cases be used to replace any query clause. One difference between using a Query and a Filter is that the Query has an impact on the score while a Filter does not. + * '''Find the bottleneck.''' + + Complex query analysis or heavy post-processing of results are examples of hidden bottlenecks for searches. Profiling with at tool such as [[https://visualvm.dev.java.net/ VisualVM]] helps locating the problem. +