This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit f1c1629d627bcbe5546bc43a5c7623439bce391e
Author: Gustavo Segovia <[email protected]>
AuthorDate: Wed Jan 29 10:57:38 2020 +0100

    Fix duplicate FragNum value on Highlight.TextFragment
---
 src/Lucene.Net.Highlighter/Highlight/TextFragment.cs | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs 
b/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs
index d4a97ad..3edd11e 100644
--- a/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs
+++ b/src/Lucene.Net.Highlighter/Highlight/TextFragment.cs
@@ -50,7 +50,11 @@ namespace Lucene.Net.Search.Highlight
         /// <summary>
         /// the fragment sequence number
         /// </summary>
-        public virtual int FragNum { get; protected internal set; }
+        public virtual int FragNum
+        {
+               get { return fragNum; }
+               protected internal set { fragNum = value; }
+        }
 
         /// <param name="frag2">Fragment to be merged into this one</param>
         public virtual void Merge(TextFragment frag2)

Reply via email to