File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/org/elasticsearch/index/fielddata Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,16 @@ public <IFD extends IndexFieldData> IFD getForField(FieldMapper.Names fieldNames
121
121
IndexFieldData .Builder builder = null ;
122
122
if (type .getFormat () != null ) {
123
123
builder = buildersByTypeAndFormat .get (Tuple .tuple (type .getType (), type .getFormat ()));
124
+ if (builder == null ) {
125
+ logger .warn ("failed to find format [" + type .getFormat () + "] for field [" + fieldNames .fullName () + "], will use default" );
126
+ }
127
+ }
128
+ String format = indexSettings .get ("index.fielddata.type." + type .getType () + ".format" , null );
129
+ if (format != null ) {
130
+ builder = buildersByTypeAndFormat .get (Tuple .tuple (type .getType (), type .getFormat ()));
131
+ if (builder == null ) {
132
+ logger .warn ("failed to find index level type format [" + format + "] for field [" + fieldNames .fullName () + "], will use default" );
133
+ }
124
134
}
125
135
if (builder == null ) {
126
136
builder = buildersByType .get (type .getType ());
You can’t perform that action at this time.
0 commit comments