mirror of https://github.com/apache/lucene.git
clear nocommits
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1440933 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54773d36a3
commit
8a2a727873
|
@ -46,13 +46,10 @@ final class DocValuesProcessor extends StoredFieldsConsumer {
|
|||
|
||||
@Override
|
||||
void finishDocument() {
|
||||
// nocommit catch missing DV fields here? else we have
|
||||
// null/"" depending on how docs landed in segments?
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addField(int docID, StorableField field, FieldInfo fieldInfo) {
|
||||
// nocommit: these checks are duplicated everywhere
|
||||
final DocValuesType dvType = field.fieldType().docValueType();
|
||||
if (dvType != null) {
|
||||
fieldInfo.setDocValuesType(dvType);
|
||||
|
@ -82,6 +79,10 @@ final class DocValuesProcessor extends StoredFieldsConsumer {
|
|||
writer.finish(state.segmentInfo.getDocCount());
|
||||
writer.flush(state, dvConsumer);
|
||||
}
|
||||
// TODO: catch missing DV fields here? else we have
|
||||
// null/"" depending on how docs landed in segments?
|
||||
// but we can't detect all cases, and we should leave
|
||||
// this behavior undefined. dv is not "schemaless": its column-stride.
|
||||
writers.clear();
|
||||
success = true;
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue