Class FetchSourceFilter
java.lang.Object
org.springframework.data.elasticsearch.core.query.FetchSourceFilter
- All Implemented Interfaces:
SourceFilter
SourceFilter implementation for providing includes and excludes.
- Author:
- Jon Tsiros, Peter-Josef Meisch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionString[]
String[]
static SourceFilter
static SourceFilter
of
(Function<FetchSourceFilterBuilder, FetchSourceFilterBuilder> builderFunction)
-
Constructor Details
-
FetchSourceFilter
-
-
Method Details
-
of
- Since:
- 5.2
-
of
public static SourceFilter of(Function<FetchSourceFilterBuilder, FetchSourceFilterBuilder> builderFunction) - Since:
- 5.2
-
getIncludes
- Specified by:
getIncludes
in interfaceSourceFilter
- Returns:
- the name of the fields to include in a response.
-
getExcludes
- Specified by:
getExcludes
in interfaceSourceFilter
- Returns:
- the names of the fields to exclude from a response.
-