Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 52601 invoked from network); 23 May 2003 21:02:16 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 23 May 2003 21:02:16 -0000 Received: (qmail 11305 invoked by uid 97); 23 May 2003 21:04:30 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 11298 invoked from network); 23 May 2003 21:04:30 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 23 May 2003 21:04:30 -0000 Received: (qmail 52367 invoked by uid 500); 23 May 2003 21:02:13 -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 52347 invoked from network); 23 May 2003 21:02:12 -0000 Received: from mail.hksi.net (HELO netwebapps.com) (204.118.40.43) by daedalus.apache.org with SMTP; 23 May 2003 21:02:12 -0000 Received: from vincent [65.28.50.217] by netwebapps.com with ESMTP (SMTPD32-8.00) id AB8448A0098; Fri, 23 May 2003 15:58:44 -0500 Message-ID: <003b01c3216e$977e45a0$d9321c41@vincent> Reply-To: "Bryan LaPlante" From: "Bryan LaPlante" To: Subject: Using MultiSearcher Date: Fri, 23 May 2003 16:02:16 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I am have a problem using MultiSearcher and I want to ask if I am using it properly. Every other run of my jsp page throws an exception on the msearcher.search(query); line of code, otherwise it runs ok. the error: javax.servlet.ServletException: msearcher.search(query): java.io.IOException: Bad file descriptor the code: /** * There is a method that creates the IndexSearcher[] called idx, * try/catch blocks have been removed for clarity. * idx looks like {new IndexSearcher(IndexReader.open("opt/lucene/index")),new IndexSearcher(IndexReader.open("search/lucene/index"))} */ msearcher = new MultiSearcher(idx); analyzer = new StopAnalyzer(); query = QueryParser.parse(criteria, "contents", analyzer); hits = msearcher.search(query); --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org