lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r801411 - /lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterTest.java
Date Wed, 05 Aug 2009 21:08:42 GMT
Author: yonik
Date: Wed Aug  5 21:08:42 2009
New Revision: 801411

URL: http://svn.apache.org/viewvc?rev=801411&view=rev
Log:
don't use a numeric field for testing highlighting

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterTest.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterTest.java?rev=801411&r1=801410&r2=801411&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterTest.java Wed Aug  5 21:08:42
2009
@@ -539,7 +539,8 @@
      //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 @@
             );
 
     // 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



Mime
View raw message