lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [17/47] lucenenet git commit: Fixed comparison bug in Codecs.BlockTerms.BlockTermsReader
Date Tue, 11 Oct 2016 18:35:02 GMT
Fixed comparison bug in Codecs.BlockTerms.BlockTermsReader


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

Branch: refs/heads/master
Commit: aff260f628c024f2a20516e9e5c86745f0829738
Parents: 4524df4
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Oct 10 23:52:37 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Oct 11 00:26:21 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/BlockTerms/BlockTermsReader.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/aff260f6/src/Lucene.Net.Codecs/BlockTerms/BlockTermsReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/BlockTerms/BlockTermsReader.cs b/src/Lucene.Net.Codecs/BlockTerms/BlockTermsReader.cs
index a627d7c..cbc8620 100644
--- a/src/Lucene.Net.Codecs/BlockTerms/BlockTermsReader.cs
+++ b/src/Lucene.Net.Codecs/BlockTerms/BlockTermsReader.cs
@@ -774,7 +774,7 @@ namespace Lucene.Net.Codecs.BlockTerms
                 public override DocsAndPositionsEnum DocsAndPositions(Bits liveDocs, DocsAndPositionsEnum
reuse,
                     int flags)
                 {
-                    if (_fieldReader._fieldInfo.FieldIndexOptions >= FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS)
+                    if (_fieldReader._fieldInfo.FieldIndexOptions.GetValueOrDefault().CompareTo(FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS)
< 0)
                     {
                         // Positions were not indexed:
                         return null;


Mime
View raw message