Skip to content
New issue

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

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

Already on GitHub? # to your account

Support field exclusion in _source. #117

Closed
wants to merge 1 commit into from

Conversation

nistvan86
Copy link

Elasticsearch allows us to specify field level exclusions when creating a mapping. See: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-source-field.html#include-exclude

This functionality allows us to create a so called "indexed but not stored" kind of document field. The @field annotation's existing store attribute is not equivalent with this.

Spring Data ES currently lacks this feature in the document annotations, It should be possible to enable it using a custom mapping configuration file however it would be more expressive to specify this on the @field annotation directly.

This pull request implements the described functionality.

@nistvan86
Copy link
Author

Created Jira ticket at: https://jira.spring.io/browse/DATAES-195
This is my first contribution to Spring projects so please tell me if it's missing something important.

@pivotal-issuemaster
Copy link

@nistvan86 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants