Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-2132: Fix the demo result.jsp

Robert Muir91bf5bec9272
diff --git a/CHANGES.txt b/CHANGES.txt
index 1b1c4b11b2e..12a116772d1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -40,6 +40,9 @@ Bug fixes
Integer.MAX_VALUE as nDocs to IndexSearcher search methods. (Paul
Taylor 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 switch
diff --git a/src/jsp/configuration.jsp b/src/jsp/configuration.jsp
index 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.jsp
index 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 and
limitations 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.jsp
index 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.jsp
index 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.jsp
index 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 embedded
in 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 analyzer
try {
- 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