iprithv commented on code in PR #5361:
URL: https://github.com/apache/solr/pull/5361#discussion_r4678128148


##########
solr/core/src/java/org/apache/solr/schema/FieldType.java:
##########
@@ -329,6 +332,34 @@ protected IndexableField createField(String name, String 
val, IndexableFieldType
     return new Field(name, val, type);
   }
 
+  protected IndexableField createSortedDocValuesField(
+      String fieldName, BytesRef value, boolean hasDocValuesSkipList) {
+    return hasDocValuesSkipList
+        ? SortedDocValuesField.indexedField(fieldName, value)
+        : new SortedDocValuesField(fieldName, value);
+  }
+
+  protected IndexableField createSortedSetDocValuesField(
+      String fieldName, BytesRef value, boolean hasDocValuesSkipList) {
+    return hasDocValuesSkipList
+        ? SortedSetDocValuesField.indexedField(fieldName, value)
+        : new SortedSetDocValuesField(fieldName, value);
+  }
+
+  protected IndexableField createNumericDocValuesField(
+      String fieldName, long value, boolean hasDocValuesSkipList) {
+    return hasDocValuesSkipList
+        ? NumericDocValuesField.indexedField(fieldName, value)

Review Comment:
   checked this, yes....lucene rejects dv updates when a skip index is present, 
so i excluded hasDocValuesSkipList() from the in-place eligibility check. 



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to