Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

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

Daniel Naber94cc256054f6
diff --git a/CHANGES.txt b/CHANGES.txt
index 15621a8f74e..a03b57d9028 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -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
diff --git a/src/jsp/results.jsp b/src/jsp/results.jsp
index 13a89e09693..208d2d7df99 100755
--- a/src/jsp/results.jsp
+++ b/src/jsp/results.jsp
@@ -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"