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
Get suggestions for user profiles that match specified search criteria.
See Also:
API specification
  • Field Details

  • Method Details

    • of

    • data

      public final java.util.List<java.lang.String> data()
      List of filters for the data field of the profile document. To return all content use data=*. To return a subset of content use data=<key> to retrieve content nested under the specified <key>. By default returns no data content.

      API name: data

    • hint

      @Nullable public final 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 the name field query.

      API name: hint

    • name

      @Nullable public final java.lang.String name()
      Query string used to match name-related fields in user profile documents. Name-related fields are the user's username, full_name, and email.

      API name: name

    • size

      @Nullable public final java.lang.Long size()
      Number of profiles to return.

      API name: size

    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupSuggestUserProfilesRequestDeserializer

      protected static void setupSuggestUserProfilesRequestDeserializer​(ObjectDeserializer<SuggestUserProfilesRequest.Builder> op)