mirror of https://github.com/apache/lucene.git
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:
parent
57f35aa2af
commit
94cc256054
|
@ -10,7 +10,9 @@ New features
|
||||||
|
|
||||||
Bug fixes
|
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
|
Release 2.0.0 2005-05-26
|
||||||
|
|
|
@ -78,7 +78,8 @@ public String escapeHTML(String s) {
|
||||||
|
|
||||||
Analyzer analyzer = new StopAnalyzer(); //construct our usual analyzer
|
Analyzer analyzer = new StopAnalyzer(); //construct our usual analyzer
|
||||||
try {
|
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
|
} catch (ParseException e) { //query and construct the Query
|
||||||
//object
|
//object
|
||||||
//if it's just "operator error"
|
//if it's just "operator error"
|
||||||
|
|
Loading…
Reference in New Issue