public class SearchesClientImpl extends ApiClient implements SearchesClient
baseUrl, httpClient, httpRequestHandler, objectMapper| Constructor and Description |
|---|
SearchesClientImpl(String baseUrl,
kong.unirest.UnirestInstance httpClient,
com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler) |
| Modifier and Type | Method and Description |
|---|---|
ODataValueOfBoolean |
cancelOrCloseSearch(ParametersForCancelOrCloseSearch parameters)
- Cancels a currently running search.
- Closes a completed search. |
AcceptedOperation |
createSearchOperation(ParametersForCreateSearchOperation parameters)
- Runs a search operation on the repository.
- Optional body parameters: FuzzyType: (default none), which can be used to determine what is considered a match by number of letters or percentage. |
ODataValueContextOfIListOfContextHit |
getSearchContextHits(ParametersForGetSearchContextHits parameters)
- Returns the context hits associated with a search result entry.
- Given a searchToken, and rowNumber associated with a search entry in the listing, return the context hits for that entry. - Default page size: 100. |
void |
getSearchContextHitsForEach(Function<ODataValueContextOfIListOfContextHit,Boolean> callback,
Integer maxPageSize,
ParametersForGetSearchContextHits parameters)
Provides the functionality to iteratively (i.e.
|
ODataValueContextOfIListOfContextHit |
getSearchContextHitsNextLink(String nextLink,
int maxPageSize)
Returns the next subset of the requested collection, using a nextlink url.
|
ODataValueContextOfIListOfEntry |
getSearchResults(ParametersForGetSearchResults parameters)
- Returns a search result listing if the search is completed.
- Optional query parameter: groupByOrderType (default false). |
void |
getSearchResultsForEach(Function<ODataValueContextOfIListOfEntry,Boolean> callback,
Integer maxPageSize,
ParametersForGetSearchResults parameters)
Provides the functionality to iteratively (i.e.
|
ODataValueContextOfIListOfEntry |
getSearchResultsNextLink(String nextLink,
int maxPageSize)
Returns the next subset of the requested collection, using a nextlink url.
|
OperationProgress |
getSearchStatus(ParametersForGetSearchStatus parameters)
- Returns search status.
- Provide a token (returned in the create search asynchronous route), and get the search status, progress, and any errors that may have occurred. |
public SearchesClientImpl(String baseUrl, kong.unirest.UnirestInstance httpClient, com.laserfiche.api.client.httphandlers.HttpRequestHandler httpRequestHandler)
public OperationProgress getSearchStatus(ParametersForGetSearchStatus parameters)
SearchesClientgetSearchStatus in interface SearchesClientparameters - An object of type ParametersForGetSearchStatus which encapsulates the parameters of getSearchStatus method.OperationProgress The return valuepublic ODataValueOfBoolean cancelOrCloseSearch(ParametersForCancelOrCloseSearch parameters)
SearchesClientcancelOrCloseSearch in interface SearchesClientparameters - An object of type ParametersForCancelOrCloseSearch which encapsulates the parameters of cancelOrCloseSearch method.ODataValueOfBoolean The return valuepublic ODataValueContextOfIListOfContextHit getSearchContextHits(ParametersForGetSearchContextHits parameters)
SearchesClientgetSearchContextHits in interface SearchesClientparameters - An object of type ParametersForGetSearchContextHits which encapsulates the parameters of getSearchContextHits method.ODataValueContextOfIListOfContextHit The return valuepublic ODataValueContextOfIListOfContextHit getSearchContextHitsNextLink(String nextLink, int maxPageSize)
SearchesClientgetSearchContextHitsNextLink in interface SearchesClientnextLink - A url that allows retrieving the next subset of the requested collection.maxPageSize - Optionally specify the maximum number of items to retrieve.ODataValueContextOfIListOfContextHit The return valuepublic void getSearchContextHitsForEach(Function<ODataValueContextOfIListOfContextHit,Boolean> callback, Integer maxPageSize, ParametersForGetSearchContextHits parameters)
SearchesClientgetSearchContextHits, and apply a function on the response of each iteration.getSearchContextHitsForEach in interface SearchesClientcallback - A delegate that will be called each time new data is retrieved. Returns false to stop receiving more data; returns true to be called again if there's more data.maxPageSize - Optionally specify the maximum number of items to retrieve.parameters - An object of type ParametersForGetSearchContextHits which encapsulates the parameters of getSearchContextHits method.public AcceptedOperation createSearchOperation(ParametersForCreateSearchOperation parameters)
SearchesClientcreateSearchOperation in interface SearchesClientparameters - An object of type ParametersForCreateSearchOperation which encapsulates the parameters of createSearchOperation method.AcceptedOperation The return valuepublic ODataValueContextOfIListOfEntry getSearchResults(ParametersForGetSearchResults parameters)
SearchesClientgetSearchResults in interface SearchesClientparameters - An object of type ParametersForGetSearchResults which encapsulates the parameters of getSearchResults method.ODataValueContextOfIListOfEntry The return valuepublic ODataValueContextOfIListOfEntry getSearchResultsNextLink(String nextLink, int maxPageSize)
SearchesClientgetSearchResultsNextLink in interface SearchesClientnextLink - A url that allows retrieving the next subset of the requested collection.maxPageSize - Optionally specify the maximum number of items to retrieve.ODataValueContextOfIListOfEntry The return valuepublic void getSearchResultsForEach(Function<ODataValueContextOfIListOfEntry,Boolean> callback, Integer maxPageSize, ParametersForGetSearchResults parameters)
SearchesClientgetSearchResults, and apply a function on the response of each iteration.getSearchResultsForEach in interface SearchesClientcallback - A delegate that will be called each time new data is retrieved. Returns false to stop receiving more data; returns true to be called again if there's more data.maxPageSize - Optionally specify the maximum number of items to retrieve.parameters - An object of type ParametersForGetSearchResults which encapsulates the parameters of getSearchResults method.Copyright © 2025. All rights reserved.