All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| indexSearch | POST /indices/search |
IndexSearchResponse indexSearch(indexSearchRequest, siteId, limit, next, previous)
Perform a search on a index; this is currently available for both folder and tag indices
// Import classes:
import com.formkiq.client.invoker.ApiClient;
import com.formkiq.client.invoker.ApiException;
import com.formkiq.client.invoker.Configuration;
import com.formkiq.client.invoker.auth.*;
import com.formkiq.client.invoker.models.*;
import com.formkiq.client.api.TagIndexApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure AWS Signature V4 authorization
defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")
TagIndexApi apiInstance = new TagIndexApi(defaultClient);
IndexSearchRequest indexSearchRequest = new IndexSearchRequest(); // IndexSearchRequest |
String siteId = "siteId_example"; // String | Site Identifier
String limit = "10"; // String | Limit Results
String next = "next_example"; // String | Next page of results token
String previous = "previous_example"; // String | Previous page of results token
try {
IndexSearchResponse result = apiInstance.indexSearch(indexSearchRequest, siteId, limit, next, previous);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TagIndexApi#indexSearch");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| indexSearchRequest | IndexSearchRequest | ||
| siteId | String | Site Identifier | [optional] |
| limit | String | Limit Results | [optional] [default to 10] |
| next | String | Next page of results token | [optional] |
| previous | String | Previous page of results token | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
| 400 | 400 OK | - |