Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic excluding fields from source #2933

Open
p-migda opened this issue Jun 17, 2024 · 1 comment
Open

Dynamic excluding fields from source #2933

p-migda opened this issue Jun 17, 2024 · 1 comment
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@p-migda
Copy link

p-migda commented Jun 17, 2024

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')}")

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 17, 2024
@sothawo
Copy link
Collaborator

sothawo commented Jun 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants