File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
server/src/main/java/org/elasticsearch/index/codec Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1414import org .apache .lucene .codecs .PostingsFormat ;
1515import org .apache .lucene .codecs .lucene90 .Lucene90DocValuesFormat ;
1616import org .apache .lucene .codecs .lucene99 .Lucene99HnswVectorsFormat ;
17+ import org .elasticsearch .common .settings .Settings ;
1718import org .elasticsearch .common .util .BigArrays ;
1819import org .elasticsearch .index .IndexMode ;
1920import org .elasticsearch .index .IndexSettings ;
@@ -43,7 +44,7 @@ public class PerFieldFormatSupplier {
4344
4445 public PerFieldFormatSupplier (MapperService mapperService , BigArrays bigArrays ) {
4546 this .mapperService = mapperService ;
46- var nodeSettings = mapperService .getIndexSettings ().getNodeSettings ();
47+ var nodeSettings = mapperService != null ? mapperService .getIndexSettings ().getNodeSettings () : Settings . EMPTY ;
4748 this .tsdbDocValuesFormat = new ES87TSDBDocValuesFormat (CodecService .TSDB_DOC_VALUES_OPTIMIZED_MERGE_SETTING .get (nodeSettings ));
4849 this .bloomFilterPostingsFormat = new ES87BloomFilterPostingsFormat (bigArrays , this ::internalGetPostingsFormatForField );
4950 }
You can’t perform that action at this time.
0 commit comments