Is there a way to block new types of entities in my index

(Mysurf Mail) #1

I have defined

dynamic	"false"

in my default mapping.
This restricts new fields from being created.
Is there a way to restrict new document types (entity type) to be created?

(Mark Walkom) #2

The only way would be to define the type in the mapping and then use strict mapping to reject anything else.

(Mysurf Mail) #3

But what if I have a default with a field (let's say ID) and dynamic="false"
Then the new non dynamic entity will be created with ID.
-> And then it will be loaded to the ES.

(I have tested it and this is how it behaves)

(system) #4