public class AuthoritySolrServiceImpl extends Object implements AuthorityIndexingService, AuthoritySearchService
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.solr.client.solrj.impl.HttpSolrServer |
solr
Non-Static CommonsHttpSolrServer for processing indexing events.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AuthoritySolrServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanIndex() |
void |
commit() |
List<String> |
getAllIndexedMetadataFields()
Retrieves all the metadata fields which are indexed in the authority control
|
protected org.apache.solr.client.solrj.impl.HttpSolrServer |
getSolr() |
void |
indexContent(AuthorityValue value) |
boolean |
isConfiguredProperly() |
org.apache.solr.client.solrj.response.QueryResponse |
search(org.apache.solr.client.solrj.SolrQuery query) |
protected void |
writeDocument(org.apache.solr.common.SolrInputDocument doc)
Write the document to the solr index
|
protected org.apache.solr.client.solrj.impl.HttpSolrServer solr
protected org.apache.solr.client.solrj.impl.HttpSolrServer getSolr()
throws MalformedURLException,
org.apache.solr.client.solrj.SolrServerException
MalformedURLExceptionorg.apache.solr.client.solrj.SolrServerExceptionpublic void indexContent(AuthorityValue value)
indexContent in interface AuthorityIndexingServicepublic void cleanIndex()
throws Exception
cleanIndex in interface AuthorityIndexingServiceExceptionpublic void commit()
commit in interface AuthorityIndexingServicepublic boolean isConfiguredProperly()
isConfiguredProperly in interface AuthorityIndexingServiceprotected void writeDocument(org.apache.solr.common.SolrInputDocument doc)
throws IOException
doc - the solr documentIOException - if IO errorpublic org.apache.solr.client.solrj.response.QueryResponse search(org.apache.solr.client.solrj.SolrQuery query)
throws org.apache.solr.client.solrj.SolrServerException,
MalformedURLException
search in interface AuthoritySearchServiceorg.apache.solr.client.solrj.SolrServerExceptionMalformedURLExceptionpublic List<String> getAllIndexedMetadataFields() throws Exception
getAllIndexedMetadataFields in interface AuthoritySearchServiceException - if errorCopyright © 2022 LYRASIS. All rights reserved.