You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was actually done on purpose in #4560, see AbstractFieldMapper.merge:
if (!this.hasDocValues() && fieldMergeWith.hasDocValues()) {
// don't add conflict if this mapper has doc values while the mapper to merge doesn't since doc values are implicitely set// when the doc_values field data format is configuredmergeContext.addConflict("mapper [" + names.fullName() + "] has different " + TypeParsers.DOC_VALUES + " values");
}
If we did not add a conflict, this would mean that if you initially create your mappings with just fielddata.format=doc_values and later perform a mapping update with fielddata.format=array, you would get an exception because the mapping update doesn't have doc values enabled. Is it the expected behaviour?
@jpountz - I don't understand the doc_values vs array comment, but I think we should at least report what we accept and what we don't. So I'm happy for the attempt to disable doc_values to return an exception, rather than being silently ignored.
If you create a field with
doc_values
set tofalse
(or not specified), then trying to update the mapping totrue
throws an exception.However, if
doc_values
is initially set totrue
, then trying to update it tofalse
is silently ignored:Returns:
The text was updated successfully, but these errors were encountered: