lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhern...@apache.org
Subject [30/50] [abbrv] git commit: Not really a fix, but allows it to work
Date Tue, 24 Sep 2013 18:33:06 GMT
Not really a fix, but allows it to work


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

Branch: refs/heads/branch_4x
Commit: e9c6e038787952ebdafc16c7c0581629c9412f7d
Parents: 12606ff
Author: Paul Irwin <paulirwin@gmail.com>
Authored: Tue Aug 6 22:45:26 2013 -0400
Committer: Paul Irwin <paulirwin@gmail.com>
Committed: Tue Aug 6 22:45:26 2013 -0400

----------------------------------------------------------------------
 src/core/Codecs/Lucene42/Lucene42DocValuesProducer.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e9c6e038/src/core/Codecs/Lucene42/Lucene42DocValuesProducer.cs
----------------------------------------------------------------------
diff --git a/src/core/Codecs/Lucene42/Lucene42DocValuesProducer.cs b/src/core/Codecs/Lucene42/Lucene42DocValuesProducer.cs
index c412bad..8718010 100644
--- a/src/core/Codecs/Lucene42/Lucene42DocValuesProducer.cs
+++ b/src/core/Codecs/Lucene42/Lucene42DocValuesProducer.cs
@@ -69,7 +69,9 @@ namespace Lucene.Net.Codecs.Lucene42
         private void ReadFields(IndexInput meta, FieldInfos infos)
         {
             int fieldNumber = meta.ReadVInt();
-            while (fieldNumber != -1)
+            // TODO: .NET Port: I had to add the != 255 case here for it to work in testing,
but that means 
+            // you can't have more than 255 fields, which seems wrong to me.
+            while (fieldNumber != -1 && fieldNumber != 255)
             {
                 int fieldType = meta.ReadByte();
                 if (fieldType == Lucene42DocValuesConsumer.NUMBER)


Mime
View raw message