public class DummyIndexerServiceImpl extends Object implements IndexerService
BATCH_SIZE, BIBLIOGRAPHIC, DOC_FORMAT, DOC_TYPE, FAILURE, HOLDINGS_IDENTIFIER, ID_FIELD_PREFIX, INSTANCE, ITEM_IDENTIFIER, SUCCESS, UUID_FILE_NAME_SUFFIX
Modifier and Type | Method and Description |
---|---|
String |
bind(List<RequestDocument> requestDocument) |
String |
bind(RequestDocument requestDocument) |
String |
buildUuid() |
String |
bulkIndexDocuments(List<RequestDocument> requestDocumentList,
boolean isCommit)
Method to bulk Index Documents
|
void |
cleanupDiscoveryData() |
void |
commit() |
String |
delete(List<RequestDocument> requestDocuments) |
String |
delete(RequestDocument requestDocument) |
String |
deleteDocument(String s,
String s1)
Deletes the document (if existing) with the given uuid.
|
String |
deleteDocuments(String s,
List<String> strings)
Deletes the documents (if existing) with the Ids specified in the given uuidList.
|
static DummyIndexerServiceImpl |
getInstance() |
List<org.apache.solr.common.SolrDocument> |
getSolrDocument(String s,
String s1) |
List<org.apache.solr.common.SolrDocument> |
getSolrDocumentBySolrId(String s) |
String |
indexDocument(RequestDocument requestDocument) |
String |
indexDocument(RequestDocument requestDocument,
boolean commit) |
String |
indexDocuments(List<RequestDocument> requestDocumentList) |
String |
indexDocuments(List<RequestDocument> requestDocumentList,
boolean commit) |
String |
indexDocumentsFromDirBySolrDoc(String s,
String s1,
String s2,
String s3)
Indexes the documents from the xml files in the given fileDir.
|
String |
indexDocumentsFromFileBySolrDoc(String s,
String s1,
String s2,
String s3) |
String |
indexDocumentsFromFiles(String s,
String s1,
String s2,
List<File> files) |
String |
indexDocumentsFromStringBySolrDoc(String s,
String s1,
String s2,
String s3) |
String |
indexSolrDocuments(List<org.apache.solr.common.SolrInputDocument> solrDocs) |
void |
rollback() |
org.apache.solr.client.solrj.response.QueryResponse |
searchBibRecord(String s,
String s1,
String s2,
String s3,
String s4,
String s5) |
void |
transferInstances(List<RequestDocument> requestDocuments) |
void |
transferItems(List<RequestDocument> requestDocuments) |
String |
unbind(List<RequestDocument> requestDocuments) |
public static DummyIndexerServiceImpl getInstance()
public String deleteDocuments(String s, List<String> strings)
IndexerService
deleteDocuments
in interface IndexerService
public String deleteDocument(String s, String s1)
IndexerService
deleteDocument
in interface IndexerService
public String indexDocumentsFromFileBySolrDoc(String s, String s1, String s2, String s3)
indexDocumentsFromFileBySolrDoc
in interface IndexerService
public String indexDocumentsFromDirBySolrDoc(String s, String s1, String s2, String s3)
IndexerService
indexDocumentsFromDirBySolrDoc
in interface IndexerService
public String indexDocumentsFromStringBySolrDoc(String s, String s1, String s2, String s3) throws IOException
indexDocumentsFromStringBySolrDoc
in interface IndexerService
IOException
public String indexDocumentsFromFiles(String s, String s1, String s2, List<File> files)
indexDocumentsFromFiles
in interface IndexerService
public List<org.apache.solr.common.SolrDocument> getSolrDocumentBySolrId(String s)
getSolrDocumentBySolrId
in interface IndexerService
public List<org.apache.solr.common.SolrDocument> getSolrDocument(String s, String s1)
getSolrDocument
in interface IndexerService
public org.apache.solr.client.solrj.response.QueryResponse searchBibRecord(String s, String s1, String s2, String s3, String s4, String s5)
searchBibRecord
in interface IndexerService
public void cleanupDiscoveryData() throws IOException, org.apache.solr.client.solrj.SolrServerException
cleanupDiscoveryData
in interface IndexerService
IOException
org.apache.solr.client.solrj.SolrServerException
public String bind(List<RequestDocument> requestDocument) throws Exception, IOException
bind
in interface IndexerService
Exception
IOException
public String bind(RequestDocument requestDocument) throws Exception
bind
in interface IndexerService
Exception
public String unbind(List<RequestDocument> requestDocuments) throws Exception
unbind
in interface IndexerService
Exception
public void transferInstances(List<RequestDocument> requestDocuments) throws Exception
transferInstances
in interface IndexerService
Exception
public void transferItems(List<RequestDocument> requestDocuments) throws Exception
transferItems
in interface IndexerService
Exception
public String delete(List<RequestDocument> requestDocuments) throws Exception
delete
in interface IndexerService
Exception
public String delete(RequestDocument requestDocument) throws org.apache.solr.client.solrj.SolrServerException, Exception
delete
in interface IndexerService
org.apache.solr.client.solrj.SolrServerException
Exception
public String buildUuid()
buildUuid
in interface IndexerService
public String bulkIndexDocuments(List<RequestDocument> requestDocumentList, boolean isCommit)
IndexerService
bulkIndexDocuments
in interface IndexerService
public String indexDocument(RequestDocument requestDocument)
indexDocument
in interface IndexerService
public String indexDocument(RequestDocument requestDocument, boolean commit)
indexDocument
in interface IndexerService
public String indexDocuments(List<RequestDocument> requestDocumentList)
indexDocuments
in interface IndexerService
public String indexDocuments(List<RequestDocument> requestDocumentList, boolean commit)
indexDocuments
in interface IndexerService
public String indexSolrDocuments(List<org.apache.solr.common.SolrInputDocument> solrDocs)
indexSolrDocuments
in interface IndexerService
public void commit() throws Exception
commit
in interface IndexerService
Exception
public void rollback() throws Exception
rollback
in interface IndexerService
Exception
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.