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.
|
| Constructor and Description |
|---|
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 force) |
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, boolean force)
indexContent in interface AuthorityIndexingServicepublic void cleanIndex()
throws Exception
cleanIndex in interface AuthorityIndexingServiceExceptionpublic void commit()
commit in interface AuthorityIndexingServiceprotected void writeDocument(org.apache.solr.common.SolrInputDocument doc)
throws IOException
doc - the solr documentIOExceptionpublic 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 AuthoritySearchServiceExceptionCopyright © 2014 DuraSpace. All Rights Reserved.