lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [07/33] lucenenet git commit: BUG: Lucene.Net.Codecs.Pulsing.PulsingPostingsReader: Corrected IndexOptions comparison logic.
Date Fri, 17 Mar 2017 22:28:37 GMT
BUG: Lucene.Net.Codecs.Pulsing.PulsingPostingsReader: Corrected IndexOptions comparison logic.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/ca451504
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/ca451504
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/ca451504

Branch: refs/heads/api-work
Commit: ca451504056e160f04a0f2f37eb9a61743e438f9
Parents: a4d90fa
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Mar 17 00:48:31 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Mar 17 00:48:31 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ca451504/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs b/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
index 65afb9b..1e8a23d 100644
--- a/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
+++ b/src/Lucene.Net.Codecs/Pulsing/PulsingPostingsReader.cs
@@ -175,7 +175,7 @@ namespace Lucene.Net.Codecs.Pulsing
             termState2.Absolute = termState2.Absolute || absolute;
             // if we have positions, its total TF, otherwise its computed based on docFreq.
             // TODO Double check this is right..
-            long count = IndexOptions.DOCS_AND_FREQS_AND_POSITIONS.CompareTo(fieldInfo.IndexOptions)
>= 0
+            long count = fieldInfo.IndexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS)
>= 0
                 ? termState2.TotalTermFreq
                 : termState2.DocFreq;
            
@@ -199,6 +199,7 @@ namespace Lucene.Net.Codecs.Pulsing
             }
             else
             {
+                //System.out.println("  not inlined");
                 var longsSize = _fields == null ? 0 : _fields[fieldInfo.Number];
                 if (termState2.Int64s == null)
                 {


Mime
View raw message