From dba4877e98de27c77747ae5d5fa2d047322f38d7 Mon Sep 17 00:00:00 2001 From: rclabo Date: Wed, 25 Sep 2024 18:03:51 -0400 Subject: [PATCH] Better approach to fixing TermStats.TermText to fix one failing unit test. --- src/Lucene.Net.Misc/Misc/TermStats.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Lucene.Net.Misc/Misc/TermStats.cs b/src/Lucene.Net.Misc/Misc/TermStats.cs index f057ba89e9..7ac5fbc918 100644 --- a/src/Lucene.Net.Misc/Misc/TermStats.cs +++ b/src/Lucene.Net.Misc/Misc/TermStats.cs @@ -25,7 +25,7 @@ namespace Lucene.Net.Misc /// public sealed class TermStats { - public readonly BytesRef TermText; + public BytesRef TermText { get; private set; } public string Field { get; set; } public int DocFreq { get; set; } public long TotalTermFreq { get; set; }