Open p-migda opened 3 months ago
In this way it's definitely not possible, as this would change the type of the Field.excludeFromSource
from Boolean
to String
.
It might be a good thing to have some kind of customization hook that allows modifying a mapping before it is written to the index. Have to think about it.
I want to manage to excluding fields by property from properties.yml. Can you add SpEL in to excludeFromSource ?
e.g.
@Field(excludeFromSource = "#{@environment.getProperty('es.excludeFromSource')}")