public interface SolrRestManagerAPIService
| Modifier and Type | Method and Description |
|---|---|
RestManagerResponse |
deleteResource(org.apache.solr.client.solrj.SolrClient solrClient,
String resourceName,
String language,
String term)
Deletes the item by the given term from the resource with the given resource name and language.
|
RestManagerResponse |
fetchResource(org.apache.solr.client.solrj.SolrClient solrClient,
String resourceName,
String language)
Fetches the resource for the given resource name and language using the provided
SolrClient. |
RestManagerResponse |
putResource(org.apache.solr.client.solrj.SolrClient solrClient,
String resourceName,
String language,
Object body)
Adds a new item to the resource with the given resource name and language using the provided
SolrClient. |
RestManagerResponse fetchResource(org.apache.solr.client.solrj.SolrClient solrClient, String resourceName, String language) throws IOException, org.apache.solr.client.solrj.SolrServerException
SolrClient.solrClient - the SolrClientresourceName - the name of the resource, e.g. "synonyms"language - the language or version of the resource, e.g. "en"IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionRestManagerResponse putResource(org.apache.solr.client.solrj.SolrClient solrClient, String resourceName, String language, Object body) throws IOException, org.apache.solr.client.solrj.SolrServerException
SolrClient.
The object provided is typically a Map or a List depending on what the resource requires.solrClient - the SolrClientresourceName - the name of the resource, e.g. "synonyms"language - the language or version of the resource, e.g. "en"body - the request bodyIOExceptionorg.apache.solr.client.solrj.SolrServerExceptionRestManagerResponse deleteResource(org.apache.solr.client.solrj.SolrClient solrClient, String resourceName, String language, String term) throws IOException, org.apache.solr.client.solrj.SolrServerException
solrClient - the SolrClientresourceName - the name of the resource, e.g. "synonyms"language - the language or version of the resource, e.g. "en"term - the key/term of the itemIOExceptionorg.apache.solr.client.solrj.SolrServerExceptionCopyright © 2020. All rights reserved.