Class SuggestUserProfilesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<SuggestUserProfilesRequest.Builder>
co.elastic.clients.elasticsearch.security.SuggestUserProfilesRequest.Builder
- All Implemented Interfaces:
WithJson<SuggestUserProfilesRequest.Builder>,ObjectBuilder<SuggestUserProfilesRequest>
- Enclosing class:
- SuggestUserProfilesRequest
public static class SuggestUserProfilesRequest.Builder
extends RequestBase.AbstractBuilder<SuggestUserProfilesRequest.Builder>
implements ObjectBuilder<SuggestUserProfilesRequest>
Builder for
SuggestUserProfilesRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSuggestUserProfilesRequest.List of filters for thedatafield of the profile document.List of filters for thedatafield of the profile document.Extra search criteria to improve relevance of the suggestion result.Extra search criteria to improve relevance of the suggestion result.Query string used to match name-related fields in user profile documents.protected SuggestUserProfilesRequest.Builderself()Number of profiles to return.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
-
data
List of filters for thedatafield of the profile document. To return all content usedata=*. To return a subset of content usedata=<key>to retrieve content nested under the specified<key>. By default returns nodatacontent.API name:
dataAdds all elements of
listtodata. -
data
List of filters for thedatafield of the profile document. To return all content usedata=*. To return a subset of content usedata=<key>to retrieve content nested under the specified<key>. By default returns nodatacontent.API name:
dataAdds one or more values to
data. -
hint
Extra search criteria to improve relevance of the suggestion result. Profiles matching the spcified hint are ranked higher in the response. Profiles not matching the hint don't exclude the profile from the response as long as the profile matches thenamefield query.API name:
hint -
hint
Extra search criteria to improve relevance of the suggestion result. Profiles matching the spcified hint are ranked higher in the response. Profiles not matching the hint don't exclude the profile from the response as long as the profile matches thenamefield query.API name:
hint -
name
Query string used to match name-related fields in user profile documents. Name-related fields are the user'susername,full_name, andemail.API name:
name -
size
Number of profiles to return.API name:
size -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SuggestUserProfilesRequest.Builder>
-
build
Builds aSuggestUserProfilesRequest.- Specified by:
buildin interfaceObjectBuilder<SuggestUserProfilesRequest>- Throws:
NullPointerException- if some of the required fields are null.
-