Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 66008 invoked by uid 500); 22 Oct 2001 13:04:40 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 65938 invoked from network); 22 Oct 2001 13:04:38 -0000 From: "Parag Dharmadhikari" To: "lucene-user" Subject: newbi question Date: Mon, 22 Oct 2001 18:36:14 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi all, I am new to lucene and I can not understand why I am getting following error with this program? public class Search { public static void main(String[] args) { try{ String indexPath = "d:\\org", queryString = "parag"; Searcher searcher = new IndexSearcher(indexPath); Query query = QueryParser.parse(queryString, "body", new SimpleAnalyzer()); Hits hits = searcher.search(query); for (int i=0; i