public class AuthoritySolrServiceImpl extends java.lang.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() |
java.util.List<java.lang.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 java.net.MalformedURLException,
org.apache.solr.client.solrj.SolrServerException
java.net.MalformedURLExceptionorg.apache.solr.client.solrj.SolrServerExceptionpublic void indexContent(AuthorityValue value, boolean force)
indexContent in interface AuthorityIndexingServicepublic void cleanIndex()
throws java.lang.Exception
cleanIndex in interface AuthorityIndexingServicejava.lang.Exceptionpublic void commit()
commit in interface AuthorityIndexingServiceprotected void writeDocument(org.apache.solr.common.SolrInputDocument doc)
throws java.io.IOException
doc - the solr documentjava.io.IOExceptionpublic org.apache.solr.client.solrj.response.QueryResponse search(org.apache.solr.client.solrj.SolrQuery query)
throws org.apache.solr.client.solrj.SolrServerException,
java.net.MalformedURLException
search in interface AuthoritySearchServiceorg.apache.solr.client.solrj.SolrServerExceptionjava.net.MalformedURLExceptionpublic java.util.List<java.lang.String> getAllIndexedMetadataFields()
throws java.lang.Exception
getAllIndexedMetadataFields in interface AuthoritySearchServicejava.lang.ExceptionCopyright © 2014 DuraSpace. All Rights Reserved.