You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This functionality allows us to create a so called "indexed but not stored" kind of document fields. The @Field annotations 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.
Cannot update the description anymore, it contains some typos. Sorry for that. corrected it in the pull request's description if you would like to correct it
István Nagy opened DATAES-195 and commented
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 fields. The
@Field
annotations 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.Eg.:
code
@Field
(type = FieldType.String, excludeFromSource = true)private String indexOnlyField;
code
The referenced pull request implements this feature
Referenced from: pull request #117
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: