make web application demo work again: don't use a QueryParser method that doesn't exist anymore

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@410678 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2006-05-31 21:46:46 +00:00
parent 57f35aa2af
commit 94cc256054
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,9 @@ New features
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

View File

@ -78,7 +78,8 @@ public String escapeHTML(String s) {
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"