Class SuggestUserProfilesRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<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 WithJsonObjectBuilderBase<SuggestUserProfilesRequest.Builder> implements ObjectBuilder<SuggestUserProfilesRequest>
Builder for
SuggestUserProfilesRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SuggestUserProfilesRequestbuild()Builds aSuggestUserProfilesRequest.SuggestUserProfilesRequest.Builderdata(java.lang.String value, java.lang.String... values)List of filters for thedatafield of the profile document.SuggestUserProfilesRequest.Builderdata(java.util.List<java.lang.String> list)List of filters for thedatafield of the profile document.SuggestUserProfilesRequest.Builderhint(Hint value)Extra search criteria to improve relevance of the suggestion result.SuggestUserProfilesRequest.Builderhint(java.util.function.Function<Hint.Builder,ObjectBuilder<Hint>> fn)Extra search criteria to improve relevance of the suggestion result.SuggestUserProfilesRequest.Buildername(java.lang.String value)Query string used to match name-related fields in user profile documents.protected SuggestUserProfilesRequest.Builderself()SuggestUserProfilesRequest.Buildersize(java.lang.Long value)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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public final SuggestUserProfilesRequest.Builder data(java.lang.String value, java.lang.String... values)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
public final SuggestUserProfilesRequest.Builder hint(java.util.function.Function<Hint.Builder,ObjectBuilder<Hint>> fn)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 classWithJsonObjectBuilderBase<SuggestUserProfilesRequest.Builder>
-
build
Builds aSuggestUserProfilesRequest.- Specified by:
buildin interfaceObjectBuilder<SuggestUserProfilesRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-