Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 26445 invoked from network); 21 Feb 2007 14:35:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2007 14:35:13 -0000 Received: (qmail 99011 invoked by uid 500); 21 Feb 2007 14:35:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 98599 invoked by uid 500); 21 Feb 2007 14:35:14 -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 98588 invoked by uid 99); 21 Feb 2007 14:35:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 06:35:14 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [204.115.178.55] (HELO saturn.local) (204.115.178.55) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Feb 2007 06:35:03 -0800 Received: from TRAVELLER ([192.168.1.70]) by saturn.local with Microsoft SMTPSVC(5.0.2195.6713); Wed, 21 Feb 2007 09:34:42 -0500 From: "Tim Johnson" To: Subject: Stop long running queries Date: Wed, 21 Feb 2007 09:34:36 -0500 Message-ID: <000f01c755c5$6ac4f740$4601a8c0@TRAVELLER> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcdVxWlCSer8eLHmSpmD6G4F8we1EA== X-OriginalArrivalTime: 21 Feb 2007 14:34:42.0023 (UTC) FILETIME=[6C7A6F70:01C755C5] X-Virus-Checked: Checked by ClamAV on apache.org I'm having issues with some queries taking in excess of 500 secs to run to completion. The system being used consists of ~100 million docs spilt up across ~600 indexes. The indexes are of various sizes from 15MB to 8GB and all searches done in the system require an exact count of matching hits. The documents are also indexed with various fields and types ranging from 15 to 200 fields depending on the data indexed. 98% of all queries run under 4 sec, but the remaining 2% run for > 15 secs and sometimes > 500 secs. These long running queries usually consist of wildcard and range queries where the number of BooleanQuery statements reaches into the 100,000 range. Some of these queries return a relatively small number of results (below 300). I've recently tried to kill the search using a separate thread to wrap the searcher.search method, which works, but only once. The next query to come through throws an "IOException: The handle is invalid." in the FSInputStream.readInternal() method. Any suggestions on how to stop these long running queries? Tim Johnson SAIC Systems Engineer 757.226.1569 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org