You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by dn...@apache.org on 2006/05/31 23:46:47 UTC
svn commit: r410678 - in /lucene/java/trunk: CHANGES.txt src/jsp/results.jsp
Author: dnaber
Date: Wed May 31 14:46:46 2006
New Revision: 410678
URL: http://svn.apache.org/viewvc?rev=410678&view=rev
Log:
make web application demo work again: don't use a QueryParser method that doesn't exist anymore
Modified:
lucene/java/trunk/CHANGES.txt
lucene/java/trunk/src/jsp/results.jsp
Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=410678&r1=410677&r2=410678&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Wed May 31 14:46:46 2006
@@ -10,7 +10,9 @@
Bug fixes
- 1.
+ 1. Fixed the web application demo (built with "ant war-demo") which
+ didn't work because it used a QueryParser method that had
+ been removed (Daniel Naber)
Release 2.0.0 2005-05-26
Modified: lucene/java/trunk/src/jsp/results.jsp
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/jsp/results.jsp?rev=410678&r1=410677&r2=410678&view=diff
==============================================================================
--- lucene/java/trunk/src/jsp/results.jsp (original)
+++ lucene/java/trunk/src/jsp/results.jsp Wed May 31 14:46:46 2006
@@ -78,7 +78,8 @@
Analyzer analyzer = new StopAnalyzer(); //construct our usual analyzer
try {
- query = QueryParser.parse(queryString, "contents", analyzer); //parse the
+ QueryParser qp = new QueryParser("contents", analyzer);
+ query = qp.parse(queryString); //parse the
} catch (ParseException e) { //query and construct the Query
//object
//if it's just "operator error"