public interface IndexerService
Modifier and Type | Field and Description |
---|---|
static int |
BATCH_SIZE |
static String |
BIBLIOGRAPHIC |
static String |
DOC_FORMAT |
static String |
DOC_TYPE |
static String |
FAILURE |
static String |
HOLDINGS_IDENTIFIER |
static String |
ID_FIELD_PREFIX |
static String |
INSTANCE |
static String |
ITEM_IDENTIFIER |
static String |
SUCCESS |
static String |
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> requestDocuments,
boolean isCommit)
Method to bulk Index Documents
|
void |
cleanupDiscoveryData() |
void |
commit() |
String |
delete(List<RequestDocument> requestDocuments) |
String |
delete(RequestDocument requestDocument) |
String |
deleteDocument(String docCategory,
String uuid)
Deletes the document (if existing) with the given uuid.
|
String |
deleteDocuments(String docCategory,
List<String> uuidList)
Deletes the documents (if existing) with the Ids specified in the given uuidList.
|
List<org.apache.solr.common.SolrDocument> |
getSolrDocument(String fieldName,
String fieldValue) |
List<org.apache.solr.common.SolrDocument> |
getSolrDocumentBySolrId(String uniqueId) |
String |
indexDocument(RequestDocument requestDocument) |
String |
indexDocument(RequestDocument requestDocument,
boolean commit) |
String |
indexDocuments(List<RequestDocument> requestDocuments) |
String |
indexDocuments(List<RequestDocument> requestDocuments,
boolean commit) |
String |
indexDocumentsFromDirBySolrDoc(String docCategory,
String docType,
String docFormat,
String dataDir)
Indexes the documents from the xml files in the given fileDir.
|
String |
indexDocumentsFromFileBySolrDoc(String docCategory,
String docType,
String docFormat,
String filePath) |
String |
indexDocumentsFromFiles(String docCategory,
String docType,
String docFormat,
List<File> fileList) |
String |
indexDocumentsFromStringBySolrDoc(String docCategory,
String docType,
String docFormat,
String data) |
String |
indexSolrDocuments(List<org.apache.solr.common.SolrInputDocument> solrDocs) |
void |
rollback() |
org.apache.solr.client.solrj.response.QueryResponse |
searchBibRecord(String docCat,
String docType,
String docFormat,
String fieldName,
String fieldValue,
String fieldList) |
void |
transferInstances(List<RequestDocument> requestDocuments) |
void |
transferItems(List<RequestDocument> requestDocuments) |
String |
unbind(List<RequestDocument> requestDocuments) |
static final String SUCCESS
static final String FAILURE
static final String UUID_FILE_NAME_SUFFIX
static final String ID_FIELD_PREFIX
static final int BATCH_SIZE
static final String BIBLIOGRAPHIC
static final String DOC_TYPE
static final String DOC_FORMAT
static final String HOLDINGS_IDENTIFIER
static final String ITEM_IDENTIFIER
static final String INSTANCE
String deleteDocuments(String docCategory, List<String> uuidList) throws MalformedURLException, org.apache.solr.client.solrj.SolrServerException
docCategory
- uuidList
- MalformedURLException
org.apache.solr.client.solrj.SolrServerException
String deleteDocument(String docCategory, String uuid)
docCategory
- uuid
- String indexDocumentsFromDirBySolrDoc(String docCategory, String docType, String docFormat, String dataDir)
docCategory
- docType
- docFormat
- dataDir
- String indexDocumentsFromStringBySolrDoc(String docCategory, String docType, String docFormat, String data) throws IOException
IOException
String indexDocumentsFromFileBySolrDoc(String docCategory, String docType, String docFormat, String filePath)
String indexDocumentsFromFiles(String docCategory, String docType, String docFormat, List<File> fileList)
String indexDocuments(List<RequestDocument> requestDocuments)
String indexDocuments(List<RequestDocument> requestDocuments, boolean commit)
String indexDocument(RequestDocument requestDocument)
String indexDocument(RequestDocument requestDocument, boolean commit)
String indexSolrDocuments(List<org.apache.solr.common.SolrInputDocument> solrDocs)
String bulkIndexDocuments(List<RequestDocument> requestDocuments, boolean isCommit)
requestDocuments
- List<org.apache.solr.common.SolrDocument> getSolrDocumentBySolrId(String uniqueId)
List<org.apache.solr.common.SolrDocument> getSolrDocument(String fieldName, String fieldValue)
org.apache.solr.client.solrj.response.QueryResponse searchBibRecord(String docCat, String docType, String docFormat, String fieldName, String fieldValue, String fieldList)
void cleanupDiscoveryData() throws IOException, org.apache.solr.client.solrj.SolrServerException
IOException
org.apache.solr.client.solrj.SolrServerException
String bind(List<RequestDocument> requestDocument) throws Exception, IOException
Exception
IOException
String bind(RequestDocument requestDocument) throws Exception
Exception
void transferInstances(List<RequestDocument> requestDocuments) throws Exception
Exception
void transferItems(List<RequestDocument> requestDocuments) throws Exception
Exception
String delete(RequestDocument requestDocument) throws org.apache.solr.client.solrj.SolrServerException, Exception
org.apache.solr.client.solrj.SolrServerException
Exception
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.