From 94cc256054f6985969bd9595a4714df68264027f Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Wed, 31 May 2006 21:46:46 +0000 Subject: [PATCH] make web application demo work again: don't use a QueryParser method that doesn't exist anymore git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@410678 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 4 +++- src/jsp/results.jsp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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"