You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/10/13 23:15:06 UTC
[lucy-commits] svn commit: r1183110 - in /incubator/lucy/branches/0.2: ./
core/Lucy/Highlight/Highlighter.c
Author: marvin
Date: Thu Oct 13 21:15:05 2011
New Revision: 1183110
URL: http://svn.apache.org/viewvc?rev=1183110&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/branches/0.2/ (props changed)
incubator/lucy/branches/0.2/core/Lucy/Highlight/Highlighter.c
Propchange: incubator/lucy/branches/0.2/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Oct 13 21:15:05 2011
@@ -1 +1 @@
-/incubator/lucy/trunk:1148076,1148119,1159913,1164648,1171825,1183066
+/incubator/lucy/trunk:1148076,1148119,1159913,1164648,1171825,1183066,1183097
Modified: incubator/lucy/branches/0.2/core/Lucy/Highlight/Highlighter.c
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/0.2/core/Lucy/Highlight/Highlighter.c?rev=1183110&r1=1183109&r2=1183110&view=diff
==============================================================================
--- incubator/lucy/branches/0.2/core/Lucy/Highlight/Highlighter.c (original)
+++ incubator/lucy/branches/0.2/core/Lucy/Highlight/Highlighter.c Thu Oct 13 21:15:05 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);