Apache Solr open-source search software
LUCENE-2132: Fix the demo result.jsp
Robert Muir91bf5bec9272
diff --git a/CHANGES.txt b/CHANGES.txtindex 1b1c4b11b2e..12a116772d1 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -40,6 +40,9 @@ Bug fixesInteger.MAX_VALUE as nDocs to IndexSearcher search methods. (PaulTaylor via Mike McCandless)+* LUCENE-2132: Fix the demo result.jsp to use QueryParser with a+ Version argument. (Brian Li via Robert Muir)+New features* LUCENE-2069: Added Unicode 4 support to CharArraySet. Due to the switchdiff --git a/src/jsp/configuration.jsp b/src/jsp/configuration.jspindex 907f4e0fb6b..eb0bcfea726 100644--- a/src/jsp/configuration.jsp+++ b/src/jsp/configuration.jsp@@ -15,7 +15,6 @@limitations under the License.--><%-/* Author: Andrew C. Oliver ([email protected]) */String appTitle = "Apache Lucene Example - Intranet Server Search Application";/* make sure you point the below string to the index you created with IndexHTML */String indexLocation = "/opt/lucene/index";diff --git a/src/jsp/footer.jsp b/src/jsp/footer.jspindex 85af3ee8f13..44127a0c3c0 100644--- a/src/jsp/footer.jsp+++ b/src/jsp/footer.jsp@@ -14,7 +14,6 @@See the License for the specific language governing permissions andlimitations under the License.-->-<% /* Author Andrew C. Oliver ([email protected]) */ %><p align="center"><%=appfooter%></p>diff --git a/src/jsp/header.jsp b/src/jsp/header.jspindex f1cbe38400b..3806d7a1608 100644--- a/src/jsp/header.jsp+++ b/src/jsp/header.jsp@@ -15,7 +15,6 @@limitations under the License.--><%@include file="configuration.jsp"%>-<% /* Author: Andrew C. Oliver ([email protected] */ %><html><head><title><%=appTitle%></title>diff --git a/src/jsp/index.jsp b/src/jsp/index.jspindex ca95a38096a..5e637212fce 100755--- a/src/jsp/index.jsp+++ b/src/jsp/index.jsp@@ -15,7 +15,6 @@limitations under the License.--><%@include file="header.jsp"%>-<% /* Author: Andrew C. Oliver ([email protected]) */ %><center><form name="search" action="results.jsp" method="get"><p>diff --git a/src/jsp/results.jsp b/src/jsp/results.jspindex 1198888055d..16931df1b30 100755--- a/src/jsp/results.jsp+++ b/src/jsp/results.jsp@@ -18,7 +18,6 @@<%/*- Author: Andrew C. Oliver, SuperLink Software, Inc. ([email protected])This jsp page is deliberatly written in the horrible java directly embeddedin the page style for an easy and concise demonstration of Lucene.@@ -95,7 +94,7 @@ public String escapeHTML(String s) {Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT); //construct our usual analyzertry {- QueryParser qp = new QueryParser("contents", analyzer);+ QueryParser qp = new QueryParser(Version.LUCENE_CURRENT, "contents", analyzer);query = qp.parse(queryString); //parse the} catch (ParseException e) { //query and construct the Query//object