[pkg-java] r3947 - trunk/lucene2/debian/patches
janpascal-guest at alioth.debian.org
janpascal-guest at alioth.debian.org
Wed Aug 1 20:30:15 UTC 2007
Author: janpascal-guest
Date: 2007-08-01 20:30:15 +0000 (Wed, 01 Aug 2007)
New Revision: 3947
Added:
trunk/lucene2/debian/patches/04_fix-junit-error-in-contrib-highlight.dpatch
Modified:
trunk/lucene2/debian/patches/00list
Log:
Added patch for contrib/highlighter junit error
Modified: trunk/lucene2/debian/patches/00list
===================================================================
--- trunk/lucene2/debian/patches/00list 2007-08-01 20:30:10 UTC (rev 3946)
+++ trunk/lucene2/debian/patches/00list 2007-08-01 20:30:15 UTC (rev 3947)
@@ -1,3 +1,4 @@
01_remove_all_jarfiles.dpatch
02_full.dpatch
03_fix-benchmark-jar-locations.dpatch
+04_fix-junit-error-in-contrib-highlight.dpatch
Added: trunk/lucene2/debian/patches/04_fix-junit-error-in-contrib-highlight.dpatch
===================================================================
--- trunk/lucene2/debian/patches/04_fix-junit-error-in-contrib-highlight.dpatch (rev 0)
+++ trunk/lucene2/debian/patches/04_fix-junit-error-in-contrib-highlight.dpatch 2007-08-01 20:30:15 UTC (rev 3947)
@@ -0,0 +1,26 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 04_fix-junit-error-in-contrib-highlight.dpatch by Mark Harwood <markharw00d at yahoo.co.uk>
+##
+## DP: Fixes a junit error in contrib/highlighter, see
+## DP: http://svn.apache.org/viewvc?view=rev&revision=529417
+
+ at DPATCH@
+
+--- trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java 2006/11/09 16:21:50 472959
++++ trunk/contrib/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java 2007/04/16 22:04:07 529417
+@@ -132,7 +132,14 @@
+ }
+ public void testGetRangeFragments() throws Exception
+ {
+- doSearching(FIELD_NAME + ":[kannedy TO kznnedy]"); //bug?needs lower case
++ String queryString=FIELD_NAME + ":[kannedy TO kznnedy]";
++
++ //Need to explicitly set the QueryParser property to use RangeQuery rather than RangeFilters
++ QueryParser parser=new QueryParser(FIELD_NAME, new StandardAnalyzer());
++ parser.setUseOldRangeQuery(true);
++ query = parser.parse(queryString);
++ doSearching(query);
++
+ doStandardHighlights();
+ assertTrue("Failed to find correct number of highlights " + numHighlights + " found", numHighlights == 5);
+ }
Property changes on: trunk/lucene2/debian/patches/04_fix-junit-error-in-contrib-highlight.dpatch
___________________________________________________________________
Name: svn:executable
+ *
More information about the pkg-java-commits
mailing list