From 167a03b57646caed557d70267e390d5a2df6ceb8 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Wed, 5 Aug 2009 21:08:42 +0000 Subject: [PATCH] don't use a numeric field for testing highlighting git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@801411 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/solr/highlight/HighlighterTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/org/apache/solr/highlight/HighlighterTest.java b/src/test/org/apache/solr/highlight/HighlighterTest.java index 03f43a3a123..baeb8a215ad 100755 --- a/src/test/org/apache/solr/highlight/HighlighterTest.java +++ b/src/test/org/apache/solr/highlight/HighlighterTest.java @@ -539,7 +539,8 @@ public class HighlighterTest extends AbstractSolrTestCase { //long document assertU(adoc("tv_text", "keyword is only here", "t_text", "a piece of text to be substituted", - "id", "1")); + "id", "1", + "foo_t","hi")); assertU(commit()); assertU(optimize()); @@ -559,12 +560,12 @@ public class HighlighterTest extends AbstractSolrTestCase { ); // with an alternate - args.put("hl.alternateField", "id"); + args.put("hl.alternateField", "foo_t"); sumLRF = h.getRequestFactory("standard", 0, 200, args); assertQ("Alternate summarization", sumLRF.makeRequest("tv_text:keyword"), "//lst[@name='highlighting']/lst[@name='1' and count(*)=1]", - "//lst[@name='highlighting']/lst[@name='1']/arr[@name='t_text']/str[.='1']" + "//lst[@name='highlighting']/lst[@name='1']/arr[@name='t_text']/str[.='hi']" ); // with an alternate + max length