@Service(value="blSolrRestManagerAPIService") public class SolrRestManagerAPIServiceImpl extends Object implements SolrRestManagerAPIService
| Constructor and Description |
|---|
SolrRestManagerAPIServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.solr.client.solrj.request.RequestWriter.ContentWriter |
createJSONStringStream(Object body) |
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. |
public RestManagerResponse fetchResource(org.apache.solr.client.solrj.SolrClient solrClient, String resourceName, String language) throws IOException, org.apache.solr.client.solrj.SolrServerException
SolrRestManagerAPIServiceSolrClient.fetchResource in interface SolrRestManagerAPIServicesolrClient - 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.SolrServerExceptionpublic RestManagerResponse putResource(org.apache.solr.client.solrj.SolrClient solrClient, String resourceName, String language, Object body) throws IOException, org.apache.solr.client.solrj.SolrServerException
SolrRestManagerAPIServiceSolrClient.
The object provided is typically a Map or a List depending on what the resource requires.putResource in interface SolrRestManagerAPIServicesolrClient - 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.SolrServerExceptionpublic RestManagerResponse deleteResource(org.apache.solr.client.solrj.SolrClient solrClient, String resourceName, String language, String term) throws IOException, org.apache.solr.client.solrj.SolrServerException
SolrRestManagerAPIServicedeleteResource in interface SolrRestManagerAPIServicesolrClient - 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.SolrServerExceptionprotected org.apache.solr.client.solrj.request.RequestWriter.ContentWriter createJSONStringStream(Object body)
Copyright © 2020. All rights reserved.