All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
addDocumentFulltext | POST /documents/{documentId}/fulltext | Add document's full-text |
deleteDocumentFulltext | DELETE /documents/{documentId}/fulltext | Delete document full-text |
deleteDocumentFulltextTag | DELETE /documents/{documentId}/fulltext/tags/{tagKey} | Delete document full-text tag |
deleteDocumentFulltextTagAndValue | DELETE /documents/{documentId}/fulltext/tags/{tagKey}/{tagValue} | Delete document full-text tag/value |
getDocumentFulltext | GET /documents/{documentId}/fulltext | Get document's full-text |
queryFulltext | POST /queryFulltext | Direct opensearch search API |
searchFulltext | POST /searchFulltext | Document full-text search |
setDocumentFulltext | PUT /documents/{documentId}/fulltext | Set document's full-text |
updateDocumentFulltext | PATCH /documents/{documentId}/fulltext | Update document's full-text |
AddDocumentFulltextResponse addDocumentFulltext(documentId, siteId, addDocumentFulltextRequest)
Add document's full-text
Adde a document to OpenSearch; available as an Add-On Module
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
String documentId = "documentId_example"; // String | Document Identifier
String siteId = "siteId_example"; // String | Site Identifier
AddDocumentFulltextRequest addDocumentFulltextRequest = new AddDocumentFulltextRequest(); // AddDocumentFulltextRequest |
try {
AddDocumentFulltextResponse result = apiInstance.addDocumentFulltext(documentId, siteId, addDocumentFulltextRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#addDocumentFulltext");
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 |
---|---|---|---|
documentId | String | Document Identifier | |
siteId | String | Site Identifier | [optional] |
addDocumentFulltextRequest | AddDocumentFulltextRequest | [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 - |
DeleteFulltextResponse deleteDocumentFulltext(documentId, siteId)
Delete document full-text
Remove full text search for a document from OpenSearch; available as an Add-On Module
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
String documentId = "documentId_example"; // String | Document Identifier
String siteId = "siteId_example"; // String | Site Identifier
try {
DeleteFulltextResponse result = apiInstance.deleteDocumentFulltext(documentId, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#deleteDocumentFulltext");
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 |
---|---|---|---|
documentId | String | Document Identifier | |
siteId | String | Site Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
deleteDocumentFulltextTag(documentId, tagKey, siteId, shareKey)
Delete document full-text tag
Remove document tags from OpenSearch; available as an Add-On Module
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
String documentId = "documentId_example"; // String | Document Identifier
String tagKey = "tagKey_example"; // String | Tag Key
String siteId = "siteId_example"; // String | Site Identifier
String shareKey = "shareKey_example"; // String | Share Identifier
try {
apiInstance.deleteDocumentFulltextTag(documentId, tagKey, siteId, shareKey);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#deleteDocumentFulltextTag");
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 |
---|---|---|---|
documentId | String | Document Identifier | |
tagKey | String | Tag Key | |
siteId | String | Site Identifier | [optional] |
shareKey | String | Share Identifier | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
deleteDocumentFulltextTagAndValue(documentId, tagKey, tagValue, siteId, shareKey)
Delete document full-text tag/value
Remove document tag/value from OpenSearch; available as an Add-On Module
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
String documentId = "documentId_example"; // String | Document Identifier
String tagKey = "tagKey_example"; // String | Tag Key
String tagValue = "tagValue_example"; // String | Tag Key Value
String siteId = "siteId_example"; // String | Site Identifier
String shareKey = "shareKey_example"; // String | Share Identifier
try {
apiInstance.deleteDocumentFulltextTagAndValue(documentId, tagKey, tagValue, siteId, shareKey);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#deleteDocumentFulltextTagAndValue");
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 |
---|---|---|---|
documentId | String | Document Identifier | |
tagKey | String | Tag Key | |
tagValue | String | Tag Key Value | |
siteId | String | Site Identifier | [optional] |
shareKey | String | Share Identifier | [optional] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
GetDocumentFulltextResponse getDocumentFulltext(documentId, siteId, shareKey)
Get document's full-text
Retrieve an OpenSearch document's details, i.e., metadata
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
String documentId = "documentId_example"; // String | Document Identifier
String siteId = "siteId_example"; // String | Site Identifier
String shareKey = "shareKey_example"; // String | Share Identifier
try {
GetDocumentFulltextResponse result = apiInstance.getDocumentFulltext(documentId, siteId, shareKey);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#getDocumentFulltext");
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 |
---|---|---|---|
documentId | String | Document Identifier | |
siteId | String | Site Identifier | [optional] |
shareKey | String | Share Identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | 200 OK | * Access-Control-Allow-Origin - * Access-Control-Allow-Methods - * Access-Control-Allow-Headers - |
QueryFulltextResponse queryFulltext(body, siteId)
Direct opensearch search API
Endpoint for allowing custom, complex queries using the OpenSearch search API (https://opensearch.org/docs/latest/opensearch/rest-api/search/); available as an Add-On Module Example Request Body: { "query": { "match_all": {} }}
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
Object body = null; // Object |
String siteId = "siteId_example"; // String | Site Identifier
try {
QueryFulltextResponse result = apiInstance.queryFulltext(body, siteId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#queryFulltext");
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 |
---|---|---|---|
body | Object | ||
siteId | String | Site Identifier | [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 - |
DocumentFulltextResponse searchFulltext(documentFulltextRequest, siteId, limit)
Document full-text search
Document full-text search (and more robust multi-tag search queries, powered by OpenSearch); available as an Add-On Module
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
DocumentFulltextRequest documentFulltextRequest = new DocumentFulltextRequest(); // DocumentFulltextRequest |
String siteId = "siteId_example"; // String | Site Identifier
String limit = "10"; // String | Limit Results
try {
DocumentFulltextResponse result = apiInstance.searchFulltext(documentFulltextRequest, siteId, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#searchFulltext");
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 |
---|---|---|---|
documentFulltextRequest | DocumentFulltextRequest | ||
siteId | String | Site Identifier | [optional] |
limit | String | Limit Results | [optional] [default to 10] |
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 | - |
SetDocumentFulltextResponse setDocumentFulltext(documentId, siteId, setDocumentFulltextRequest)
Set document's full-text
Set all text/tags found within a document to OpenSearch; available as an Add-On Module
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
String documentId = "documentId_example"; // String | Document Identifier
String siteId = "siteId_example"; // String | Site Identifier
SetDocumentFulltextRequest setDocumentFulltextRequest = new SetDocumentFulltextRequest(); // SetDocumentFulltextRequest |
try {
SetDocumentFulltextResponse result = apiInstance.setDocumentFulltext(documentId, siteId, setDocumentFulltextRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#setDocumentFulltext");
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 |
---|---|---|---|
documentId | String | Document Identifier | |
siteId | String | Site Identifier | [optional] |
setDocumentFulltextRequest | SetDocumentFulltextRequest | [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 - |
UpdateDocumentFulltextResponse updateDocumentFulltext(documentId, siteId, updateDocumentFulltextRequest)
Update document's full-text
Update a document in OpenSearch; available as an Add-On Module
// 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.AdvancedDocumentSearchApi;
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")
AdvancedDocumentSearchApi apiInstance = new AdvancedDocumentSearchApi(defaultClient);
String documentId = "documentId_example"; // String | Document Identifier
String siteId = "siteId_example"; // String | Site Identifier
UpdateDocumentFulltextRequest updateDocumentFulltextRequest = new UpdateDocumentFulltextRequest(); // UpdateDocumentFulltextRequest |
try {
UpdateDocumentFulltextResponse result = apiInstance.updateDocumentFulltext(documentId, siteId, updateDocumentFulltextRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdvancedDocumentSearchApi#updateDocumentFulltext");
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 |
---|---|---|---|
documentId | String | Document Identifier | |
siteId | String | Site Identifier | [optional] |
updateDocumentFulltextRequest | UpdateDocumentFulltextRequest | [optional] |
UpdateDocumentFulltextResponse
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 - |