lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r789086 - /incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs
Date Sun, 28 Jun 2009 10:59:43 GMT
Author: digy
Date: Sun Jun 28 10:59:43 2009
New Revision: 789086

URL: http://svn.apache.org/viewvc?rev=789086&view=rev
Log:
LUCENENET-156 Contrib Highlighter.net -> getBestTextFraments error

Modified:
    incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs

Modified: incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs?rev=789086&r1=789085&r2=789086&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs (original)
+++ incubator/lucene.net/trunk/C#/contrib/Highlighter.Net/Highlighter.Net/Highlighter.cs Sun
Jun 28 10:59:43 2009
@@ -266,7 +266,7 @@
 					System.String markedUpText = formatter.HighlightTerm(encoder.EncodeText(tokenText),
tokenGroup);
 					//store any whitespace etc from between this and last group
 					if (startOffset > lastEndOffset)
-						newText.Append(encoder.EncodeText(text.Substring(lastEndOffset, (startOffset) - (lastEndOffset))));
+						newText.Append(encoder.EncodeText(text.Substring(lastEndOffset, (startOffset) - (lastEndOffset)+1)));
 					newText.Append(markedUpText);
 					lastEndOffset = System.Math.Max(lastEndOffset, endOffset);
 				}



Mime
View raw message