Class QueryUserRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.QueryUserRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class QueryUserRequest extends RequestBase implements JsonpSerializable
Retrieves information for Users in a paginated manner. You can optionally filter the results with a query.
See Also:
  • Field Details

  • Method Details

    • of

    • from

      @Nullable public final Integer from()
      Starting document offset. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use the search_after parameter.

      API name: from

    • query

      @Nullable public final UserQuery query()
      A query to filter which users to return. If the query parameter is missing, it is equivalent to a match_all query. The query supports a subset of query types, including match_all, bool, term, terms, match, ids, prefix, wildcard, exists, range, and simple_query_string. You can query the following information associated with user: username, roles, enabled

      API name: query

    • searchAfter

      public final List<FieldValue> searchAfter()
      Search after definition

      API name: search_after

    • size

      @Nullable public final Integer size()
      The number of hits to return. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use the search_after parameter.

      API name: size

    • sort

      public final List<SortOptions> sort()
      Fields eligible for sorting are: username, roles, enabled In addition, sort can also be applied to the _doc field to sort by index order.

      API name: sort

    • withProfileUid

      @Nullable public final Boolean withProfileUid()
      If true will return the User Profile ID for the users in the query result, if any.

      API name: with_profile_uid

    • 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)
    • setupQueryUserRequestDeserializer

      protected static void setupQueryUserRequestDeserializer(ObjectDeserializer<QueryUserRequest.Builder> op)