lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r888247 - in /lucene/java/trunk: CHANGES.txt src/jsp/configuration.jsp src/jsp/footer.jsp src/jsp/header.jsp src/jsp/index.jsp src/jsp/results.jsp
Date Tue, 08 Dec 2009 04:03:41 GMT
Author: rmuir
Date: Tue Dec  8 04:03:40 2009
New Revision: 888247

URL: http://svn.apache.org/viewvc?rev=888247&view=rev
Log:
LUCENE-2132: Fix the demo result.jsp

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/jsp/configuration.jsp
    lucene/java/trunk/src/jsp/footer.jsp
    lucene/java/trunk/src/jsp/header.jsp
    lucene/java/trunk/src/jsp/index.jsp
    lucene/java/trunk/src/jsp/results.jsp

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=888247&r1=888246&r2=888247&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Tue Dec  8 04:03:40 2009
@@ -40,6 +40,9 @@
   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

Modified: lucene/java/trunk/src/jsp/configuration.jsp
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/jsp/configuration.jsp?rev=888247&r1=888246&r2=888247&view=diff
==============================================================================
--- lucene/java/trunk/src/jsp/configuration.jsp (original)
+++ lucene/java/trunk/src/jsp/configuration.jsp Tue Dec  8 04:03:40 2009
@@ -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";

Modified: lucene/java/trunk/src/jsp/footer.jsp
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/jsp/footer.jsp?rev=888247&r1=888246&r2=888247&view=diff
==============================================================================
--- lucene/java/trunk/src/jsp/footer.jsp (original)
+++ lucene/java/trunk/src/jsp/footer.jsp Tue Dec  8 04:03:40 2009
@@ -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>

Modified: lucene/java/trunk/src/jsp/header.jsp
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/jsp/header.jsp?rev=888247&r1=888246&r2=888247&view=diff
==============================================================================
--- lucene/java/trunk/src/jsp/header.jsp (original)
+++ lucene/java/trunk/src/jsp/header.jsp Tue Dec  8 04:03:40 2009
@@ -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>

Modified: lucene/java/trunk/src/jsp/index.jsp
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/jsp/index.jsp?rev=888247&r1=888246&r2=888247&view=diff
==============================================================================
--- lucene/java/trunk/src/jsp/index.jsp (original)
+++ lucene/java/trunk/src/jsp/index.jsp Tue Dec  8 04:03:40 2009
@@ -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>

Modified: lucene/java/trunk/src/jsp/results.jsp
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/jsp/results.jsp?rev=888247&r1=888246&r2=888247&view=diff
==============================================================================
--- lucene/java/trunk/src/jsp/results.jsp (original)
+++ lucene/java/trunk/src/jsp/results.jsp Tue Dec  8 04:03:40 2009
@@ -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 @@
 
                 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



Mime
View raw message