mirror of https://github.com/apache/lucene.git
LUCENE-2132: Fix the demo result.jsp
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@888247 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4d12bb2e52
commit
91bf5bec92
|
@ -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
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
limitations under the License.
|
||||
-->
|
||||
<%
|
||||
/* Author: Andrew C. Oliver (acoliver2@users.sourceforge.net) */
|
||||
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";
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<% /* Author Andrew C. Oliver (acoliver2@users.sourceforge.net) */ %>
|
||||
<p align="center">
|
||||
<%=appfooter%>
|
||||
</p>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
limitations under the License.
|
||||
-->
|
||||
<%@include file="configuration.jsp"%>
|
||||
<% /* Author: Andrew C. Oliver (acoliver2@users.sourceforge.net */ %>
|
||||
<html>
|
||||
<head>
|
||||
<title><%=appTitle%></title>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
limitations under the License.
|
||||
-->
|
||||
<%@include file="header.jsp"%>
|
||||
<% /* Author: Andrew C. Oliver (acoliver2@users.sourceforge.net) */ %>
|
||||
<center>
|
||||
<form name="search" action="results.jsp" method="get">
|
||||
<p>
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
<%
|
||||
/*
|
||||
Author: Andrew C. Oliver, SuperLink Software, Inc. (acoliver2@users.sourceforge.net)
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue