Class QueryUserRequest.Builder
- All Implemented Interfaces:
WithJson<QueryUserRequest.Builder>,ObjectBuilder<QueryUserRequest>
- Enclosing class:
- QueryUserRequest
QueryUserRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryUserRequest.final QueryUserRequest.BuilderThe starting document offset.final QueryUserRequest.BuilderA query to filter which users to return.final QueryUserRequest.Builderquery(UserQueryVariant value) A query to filter which users to return.final QueryUserRequest.BuilderA query to filter which users to return.final QueryUserRequest.BuildersearchAfter(boolean value, boolean... values) The search after definitionfinal QueryUserRequest.BuildersearchAfter(double value, double... values) The search after definitionfinal QueryUserRequest.BuildersearchAfter(long value, long... values) The search after definitionfinal QueryUserRequest.BuildersearchAfter(FieldValue value, FieldValue... values) The search after definitionfinal QueryUserRequest.BuildersearchAfter(String value, String... values) The search after definitionfinal QueryUserRequest.BuilderThe search after definitionfinal QueryUserRequest.BuildersearchAfter(List<FieldValue> list) The search after definitionprotected QueryUserRequest.Builderself()final QueryUserRequest.BuilderThe number of hits to return.final QueryUserRequest.Buildersort(SortOptions value, SortOptions... values) The sort definition.final QueryUserRequest.BuilderThe sort definition.final QueryUserRequest.Buildersort(List<SortOptions> list) The sort definition.final QueryUserRequest.BuilderwithProfileUid(Boolean value) Determines whether to retrieve the user profile UID, if it exists, for the users.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
-
from
The starting document offset. It must not be negative. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
from -
query
A query to filter which users to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following information associated with user:username,roles,enabled,full_name, andemail.API name:
query -
query
public final QueryUserRequest.Builder query(Function<UserQuery.Builder, ObjectBuilder<UserQuery>> fn) A query to filter which users to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following information associated with user:username,roles,enabled,full_name, andemail.API name:
query -
query
A query to filter which users to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following information associated with user:username,roles,enabled,full_name, andemail.API name:
query -
searchAfter
The search after definitionAPI name:
search_afterAdds all elements of
listtosearchAfter. -
searchAfter
The search after definitionAPI name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definitionAPI name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definitionAPI name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definitionAPI name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
The search after definitionAPI name:
search_afterAdds one or more values to
searchAfter. -
searchAfter
public final QueryUserRequest.Builder searchAfter(Function<FieldValue.Builder, ObjectBuilder<FieldValue>> fn) The search after definitionAPI name:
search_afterAdds a value to
searchAfterusing a builder lambda. -
size
The number of hits to return. It must not be negative. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
size -
sort
The sort definition. Fields eligible for sorting are:username,roles,enabled. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds all elements of
listtosort. -
sort
The sort definition. Fields eligible for sorting are:username,roles,enabled. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds one or more values to
sort. -
sort
public final QueryUserRequest.Builder sort(Function<SortOptions.Builder, ObjectBuilder<SortOptions>> fn) The sort definition. Fields eligible for sorting are:username,roles,enabled. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sortAdds a value to
sortusing a builder lambda. -
withProfileUid
Determines whether to retrieve the user profile UID, if it exists, for the users.API name:
with_profile_uid -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<QueryUserRequest.Builder>
-
build
Builds aQueryUserRequest.- Specified by:
buildin interfaceObjectBuilder<QueryUserRequest>- Throws:
NullPointerException- if some of the required fields are null.
-