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.A comma-separated list of filters for thedatafield of the profile document.A comma-separated 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.A query string used to match name-related fields in user profile documents.protected SuggestUserProfilesRequest.Builderself()The 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
A comma-separated 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, the API returns nodatacontent. It is an error to specifydataas both the query parameter and the request body field.API name:
dataAdds all elements of
listtodata. -
data
A comma-separated 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, the API returns nodatacontent. It is an error to specifydataas both the query parameter and the request body field.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 aren't excluded 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 aren't excluded from the response as long as the profile matches thenamefield query.API name:
hint -
name
A 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
The 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.
-