Annotation Interface SourceFilters
This annotation can be placed on repository methods to define the properties that should be requested from
Elasticsearch when the method is run.
- Since:
- 5.0
- Author:
- Alexander Torres, Peter-Josef Meisch
-
Optional Element Summary
-
Element Details
-
includes
String[] includesProperties to be requested from Elasticsearch to be included in the response. These can be passed in as literals like@SourceFilters(includes = {"property1", "property2"})
@SourceFilters(includes = "?0")
- Default:
- {""}
-
excludes
String[] excludesProperties to be requested from Elasticsearch to be excluded in the response. These can be passed in as literals like@SourceFilters(excludes = {"property1", "property2"})
@SourceFilters(excludes = "?0")
- Default:
- {""}
-