spring-projects / spring-projects/spring-data-elasticsearch

Dynamic excluding fields from source

Open
#2,933 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
3k
Forks
1.3k
Avg merge
1m
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the properties.yml setting and the @Field(excludeFromSource) entry point shown in the issue, then trace how annotation values are handled. Define the expected behavior for SpEL backed by es.excludeFromSource; the work is done when that configuration controls source-field exclusion reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, java, spring
Domain
backend, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.