lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [lucy-commits] svn commit: r1183097 - /incubator/lucy/trunk/core/Lucy/Highlight/Highlighter.c
Date Thu, 13 Oct 2011 21:06:36 GMT
Author: marvin
Date: Thu Oct 13 21:06:35 2011
New Revision: 1183097

URL: http://svn.apache.org/viewvc?rev=1183097&view=rev
Log:
LUCY-182 Fix highlighting glitch triggered by doubled terms.

Use the "flattened" array of Span objects rather than the original when
applying highlighting to an excerpt.

Modified:
    incubator/lucy/trunk/core/Lucy/Highlight/Highlighter.c

Modified: incubator/lucy/trunk/core/Lucy/Highlight/Highlighter.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Highlight/Highlighter.c?rev=1183097&r1=1183096&r2=1183097&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Highlight/Highlighter.c (original)
+++ incubator/lucy/trunk/core/Lucy/Highlight/Highlighter.c Thu Oct 13 21:06:35 2011
@@ -172,9 +172,8 @@ Highlighter_create_excerpt(Highlighter *
         top = Highlighter_Raw_Excerpt(self, (CharBuf*)field_val,
                                       (CharBuf*)fragment, raw_excerpt, top,
                                       heat_map, sentences);
-        VA_Sort(score_spans, NULL, NULL);
-        Highlighter_highlight_excerpt(self, score_spans, raw_excerpt,
-                                      highlighted, top);
+        Highlighter_highlight_excerpt(self, HeatMap_Get_Spans(heat_map),
+                                      raw_excerpt, highlighted, top);
 
         DECREF(sentences);
         DECREF(heat_map);



Mime
View raw message