T - public interface SearchIndexSearching<T> extends SearchIndexBase<T>
| Modifier and Type | Method and Description |
|---|---|
default HitsWithPosition<T> |
findObject(Predicate<T> match,
Query query)
FindFirstObject searches iteratively through the search response `Hits` field to find the first
response hit that would match against the given `filterFunc` function.
|
default HitsWithPosition<T> |
findObject(Predicate<T> match,
Query query,
boolean paginate)
FindFirstObject searches iteratively through the search response `Hits` field to find the first
response hit that would match against the given `filterFunc` function.
|
default HitsWithPosition<T> |
findObject(Predicate<T> match,
Query query,
boolean paginate,
RequestOptions requestOptions)
FindFirstObject searches iteratively through the search response `Hits` field to find the first
response hit that would match against the given `filterFunc` function.
|
default SearchResult<T> |
search(Query query)
Method used for querying an index.
|
default SearchResult<T> |
search(Query query,
RequestOptions requestOptions)
Method used for querying an index.
|
default CompletableFuture<SearchResult<T>> |
searchAsync(Query query)
Method used for querying an index.
|
default CompletableFuture<SearchResult<T>> |
searchAsync(Query query,
RequestOptions requestOptions)
Method used for querying an index.
|
default SearchForFacetResponse |
searchForFacetValues(SearchForFacetRequest query)
Search for a set of values within a given facet attribute.
|
default SearchForFacetResponse |
searchForFacetValues(SearchForFacetRequest query,
RequestOptions requestOptions)
Search for a set of values within a given facet attribute.
|
default CompletableFuture<SearchForFacetResponse> |
searchForFacetValuesAsync(SearchForFacetRequest query)
Search for a set of values within a given facet attribute.
|
default CompletableFuture<SearchForFacetResponse> |
searchForFacetValuesAsync(SearchForFacetRequest query,
RequestOptions requestOptions)
Search for a set of values within a given facet attribute.
|
getClazz, getConfig, getTransport, getUrlEncodedIndexName, waitTask, waitTaskdefault SearchResult<T> search(@Nonnull Query query)
query - The search queryAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SearchResult<T> search(@Nonnull Query query, RequestOptions requestOptions)
query - The search queryrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SearchResult<T>> searchAsync(@Nonnull Query query)
query - The search queryAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SearchResult<T>> searchAsync(@Nonnull Query query, RequestOptions requestOptions)
query - The search queryrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SearchForFacetResponse searchForFacetValues(@Nonnull SearchForFacetRequest query)
query - Search for facet queryAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault SearchForFacetResponse searchForFacetValues(@Nonnull SearchForFacetRequest query, RequestOptions requestOptions)
query - Search for facet queryrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SearchForFacetResponse> searchForFacetValuesAsync(@Nonnull SearchForFacetRequest query)
query - Search for facet queryAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault CompletableFuture<SearchForFacetResponse> searchForFacetValuesAsync(@Nonnull SearchForFacetRequest query, RequestOptions requestOptions)
query - Search for facet queryrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault HitsWithPosition<T> findObject(Predicate<T> match, Query query)
If no object has been found within the first result set, the function will perform a new search operation on the next page of results, if any, until a matching object is found or the end of results, whichever happens first.
To prevent the iteration through pages of results, `doNotPaginate` parameter can be set to true. This will stop the function at the end of the first page of search results even if no object does match.
If no result found `null` will be returned
match - The predicate to matchquery - The search QueryAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault HitsWithPosition<T> findObject(Predicate<T> match, Query query, boolean paginate)
If no object has been found within the first result set, the function will perform a new search operation on the next page of results, if any, until a matching object is found or the end of results, whichever happens first.
To prevent the iteration through pages of results, `doNotPaginate` parameter can be set to true. This will stop the function at the end of the first page of search results even if no object does match.
If no result found `null` will be returned
match - The predicate to matchquery - The search Querypaginate - Should the method paginate or notAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationdefault HitsWithPosition<T> findObject(Predicate<T> match, Query query, boolean paginate, RequestOptions requestOptions)
If no object has been found within the first result set, the function will perform a new search operation on the next page of results, if any, until a matching object is found or the end of results, whichever happens first.
To prevent the iteration through pages of results, `doNotPaginate` parameter can be set to true. This will stop the function at the end of the first page of search results even if no object does match.
If no result found `null` will be returned
match - The predicate to matchquery - The search Querypaginate - Should the method paginate or notrequestOptions - Options to pass to this requestAlgoliaRetryException - When the retry has failed on all hostsAlgoliaApiException - When the API sends an http error codeAlgoliaRuntimeException - When an error occurred during the serializationCopyright © 2019. All rights reserved.