lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: [Java-lucene] Problem with Web demo in lucene 2.0?
Date Wed, 31 May 2006 21:38:41 GMT
On Mittwoch 31 Mai 2006 10:12, Simon Courtenage wrote:

> I'm new to Lucene but trying it out.  I've successfully installed the
> luceneweb.war for the indexHTML
> web demo, but am getting an error when tomcat tries to compile the
> results.jsp part of the demo as it
> tries to answer a search query.

There's a bug in the code, as it refers to a deprecated method that has 
been removed. You need to use this code instead:

          QueryParser qp = new QueryParser("contents", analyzer);
          query = qp.parse(queryString);

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message