mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
improve failure when disabling dynamic creating of types, and trying to index into a non existing type
This commit is contained in:
parent
faefc772a4
commit
655cbb9440
@ -223,7 +223,7 @@ public class MapperService extends AbstractIndexComponent implements Iterable<Do
|
||||
return mapper;
|
||||
}
|
||||
if (!dynamic) {
|
||||
return null;
|
||||
throw new TypeMissingException(index, type, "typing to auto create mapping, but dynamic mapping is disabled");
|
||||
}
|
||||
// go ahead and dynamically create it
|
||||
synchronized (mutex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user