s1monw commented on a change in pull request #1394: LUCENE-9300: Fix field
infos update on doc values update
URL: https://github.com/apache/lucene-solr/pull/1394#discussion_r402339219
##########
File path: lucene/core/src/java/org/apache/lucene/index/ReadersAndUpdates.java
##########
@@ -644,6 +656,13 @@ public synchronized boolean writeFieldUpdates(Directory
dir, FieldInfos.FieldNum
return true;
}
+ private FieldInfo cloneFieldInfo(FieldInfo fi, int fieldNumber) {
+ return new FieldInfo(fi.name, fieldNumber, fi.hasVectors(),
fi.omitsNorms(), fi.hasPayloads(),
+ fi.getIndexOptions(), fi.getDocValuesType(), fi.getDocValuesGen(), new
HashMap<>(fi.attributes()),
+ fi.getPointDimensionCount(), fi.getPointIndexDimensionCount(),
fi.getPointNumBytes(), fi.isSoftDeletesField());
+
Review comment:
extra newline
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]