Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 34168 invoked from network); 8 Dec 2009 00:58:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 00:58:33 -0000 Received: (qmail 61004 invoked by uid 500); 8 Dec 2009 00:58:31 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 60915 invoked by uid 500); 8 Dec 2009 00:58:31 -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 60905 invoked by uid 99); 8 Dec 2009 00:58:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 00:58:31 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brianli.cas@gmail.com designates 209.85.212.178 as permitted sender) Received: from [209.85.212.178] (HELO mail-vw0-f178.google.com) (209.85.212.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 00:58:23 +0000 Received: by vws8 with SMTP id 8so2197111vws.21 for ; Mon, 07 Dec 2009 16:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=/WxKvrbUQpCxPDoX1BI6nX7IIHONbWEFUIwgPEDsfDg=; b=ZkP22Vxfxp7C7wo9KTHJXL8pfHELXOJlRI6UmuZYPQrygoXBiluJhC19q+lHzt4S0j idWUGwbFqCnytyi1firN9vjwUXqvDnFKOhC7/QAzKeezTiOXJ9Bcj1R3RFvq4+86seLB uKfYMtwhMSTjmf0FkL8XuVgPjbGKpqnLo1d9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=x9wbDpOL3qwDDbTvj507kE8hrRq5k4qWNIFKmD3pfJWsXwyPS049HOEe9bu9vPdoFd AJpF0hh66+lXIHVOr6CJyw0ZtRTPjQktilzSjUNjOyMkkCvGumkrJ9VDQu9nVBjaU1Yv 2uswOFEpgxG6PzRuDZMsgMOb+2exoTu4PuUUg= MIME-Version: 1.0 Received: by 10.220.122.213 with SMTP id m21mr8687229vcr.86.1260233881908; Mon, 07 Dec 2009 16:58:01 -0800 (PST) Date: Tue, 8 Dec 2009 08:58:01 +0800 Message-ID: Subject: Lucene-3.0.0 web demo problem From: brian li To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I was checking out Lucene-3.0.0, and bumped into one little problem. I followed the steps in http://lucene.apache.org/java/3_0_0/demo3.html to run the basic web demo of lucene. Then I got an error message that in result.jsp QueryParser(String, Analyzer) was undefined. I went to the source code in org.apache.lucene.queryparser.QueryParser and found that QueryParser had only one public constructor which was QueryParser(Version matchVersion, String f, Analyzer a). I changed the function parameters in the call in result.jsp accordingly and it worked. I am not quite sure who can change the web demo code, so I just post it here. Just think newbie like me can enjoy one less bump trying this. Regards, Brian --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org