Class SuggestUserProfilesRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.SuggestUserProfilesRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class SuggestUserProfilesRequest
extends RequestBase
implements JsonpSerializable
Suggest a user profile.
Get suggestions for user profiles that match specified search criteria.
NOTE: The user profile feature is designed only for use by Kibana and Elastic's Observability, Enterprise Search, and Elastic Security solutions. Individual users and external applications should not call this API directly. Elastic reserves the right to change or remove this feature in future releases without prior notice.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SuggestUserProfilesRequest>
Json deserializer forSuggestUserProfilesRequest
Endpoint "security.suggest_user_profiles
". -
Method Summary
Modifier and TypeMethodDescriptiondata()
A comma-separated list of filters for thedata
field of the profile document.final Hint
hint()
Extra search criteria to improve relevance of the suggestion result.final String
name()
A query string used to match name-related fields in user profile documents.static SuggestUserProfilesRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupSuggestUserProfilesRequestDeserializer
(ObjectDeserializer<SuggestUserProfilesRequest.Builder> op) final Long
size()
The number of profiles to return.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forSuggestUserProfilesRequest
-
_ENDPOINT
public static final Endpoint<SuggestUserProfilesRequest,SuggestUserProfilesResponse, _ENDPOINTErrorResponse> Endpoint "security.suggest_user_profiles
".
-
-
Method Details
-
of
public static SuggestUserProfilesRequest of(Function<SuggestUserProfilesRequest.Builder, ObjectBuilder<SuggestUserProfilesRequest>> fn) -
data
A comma-separated list of filters for thedata
field 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 nodata
content. It is an error to specifydata
as both the query parameter and the request body field.API name:
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 thename
field 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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupSuggestUserProfilesRequestDeserializer
protected static void setupSuggestUserProfilesRequestDeserializer(ObjectDeserializer<SuggestUserProfilesRequest.Builder> op)
-