Class SourceFilter.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SourceFilter.Builder>
co.elastic.clients.elasticsearch.core.search.SourceFilter.Builder
- All Implemented Interfaces:
WithJson<SourceFilter.Builder>,ObjectBuilder<SourceFilter>
- Enclosing class:
- SourceFilter
public static class SourceFilter.Builder
extends WithJsonObjectBuilderBase<SourceFilter.Builder>
implements ObjectBuilder<SourceFilter>
Builder for
SourceFilter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSourceFilter.final SourceFilter.BuilderA list of fields to exclude from the returned source.final SourceFilter.BuilderA list of fields to exclude from the returned source.final SourceFilter.BuilderexcludeVectors(Boolean value) Iftrue, vector fields are excluded from the returned source.final SourceFilter.BuilderA list of fields to include in the returned source.final SourceFilter.BuilderA list of fields to include in the returned source.protected SourceFilter.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excludeVectors
Iftrue, vector fields are excluded from the returned source.This option takes precedence over
includes: any vector field will remain excluded even if it matches anincludesrule.API name:
exclude_vectors -
excludes
A list of fields to exclude from the returned source.API name:
excludesAdds all elements of
listtoexcludes. -
excludes
A list of fields to exclude from the returned source.API name:
excludesAdds one or more values to
excludes. -
includes
A list of fields to include in the returned source.API name:
includesAdds all elements of
listtoincludes. -
includes
A list of fields to include in the returned source.API name:
includesAdds one or more values to
includes. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SourceFilter.Builder>
-
build
Builds aSourceFilter.- Specified by:
buildin interfaceObjectBuilder<SourceFilter>- Throws:
NullPointerException- if some of the required fields are null.
-