Github user jpountz commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/451#discussion_r218197102
--- Diff:
lucene/core/src/java/org/apache/lucene/codecs/lucene60/Lucene60FieldInfosFormat.java
---
@@ -149,9 +149,14 @@ public FieldInfos read(Directory directory,
SegmentInfo segmentInfo, String segm
attributes = lastAttributes;
}
lastAttributes = attributes;
- int pointDimensionCount = input.readVInt();
+ int packedDimensionCount = input.readVInt();
+ int pointDataDimensionCount = 0x0000FFFF & packedDimensionCount;
+ int pointIndexDimensionCount = packedDimensionCount >>> 16;
+ if (pointIndexDimensionCount == 0) {
+ pointIndexDimensionCount = pointDataDimensionCount;
+ }
--- End diff --
could we use a new version number instead to handle backcompat?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]