public class ItemOlemlIndexer extends DocstoreSolrIndexService implements ItemConstants
Modifier and Type | Field and Description |
---|---|
static ItemOlemlRecordProcessor |
itemOlemlRecordProcessor |
static XMLUtility |
xmlUtility |
ID_FIELD_PREFIX, MAX_WARM_SEARCH, MAX_WARM_SEARCH_COUNT, TIME_FOR_WARMING_SEARCHERS
BARCODE_ARSL_DISPLAY, BARCODE_ARSL_SEARCH, BIB_IDENTIFIER, CALL_NUMBER_DISPLAY, CALL_NUMBER_PREFIX_DISPLAY, CALL_NUMBER_PREFIX_SEARCH, CALL_NUMBER_SEARCH, CALL_NUMBER_SORT, CALL_NUMBER_TYPE_DISPLAY, CALL_NUMBER_TYPE_SEARCH, CALLNUMBER_PREFIX_SORT, CALLNUMBER_SORT, CHRONOLOGY_DISPLAY, CHRONOLOGY_SEARCH, CHRONOLOGY_SORT, CLAIMS_RETURNED_FLAG_DISPLAY, CLAIMS_RETURNED_FLAG_SEARCH, CLAIMS_RETURNED_NOTE_DISPLAY, CLAIMS_RETURNED_NOTE_SEARCH, CLASSIFICATION_PART_DISPLAY, CLASSIFICATION_PART_SEARCH, COPY_NUMBER_DISPLAY, COPY_NUMBER_LABEL_DISPLAY, COPY_NUMBER_LABEL_SEARCH, COPY_NUMBER_SEARCH, COPYNUMBER_SORT, DAMAGED_ITEM_NOTE_DISPLAY, DAMAGED_ITEM_NOTE_SEARCH, DONOR_CODE_DISPLAY, DONOR_CODE_SEARCH, DONOR_NOTE_DISPLAY, DONOR_PUBLIC_DISPLAY, ENUMERATION_DISPLAY, ENUMERATION_SEARCH, ENUMERATION_SORT, FORMER_RESOURCE_IDENTIFIER_SOURCE_DISPLAY, FORMER_RESOURCE_IDENTIFIER_SOURCE_SEARCH, HIGHDENSITYSTORAGE_MODULE_DISPLAY, HIGHDENSITYSTORAGE_ROW_DISPLAY, HIGHDENSITYSTORAGE_SHELF_DISPLAY, HIGHDENSITYSTORAGE_TRAY_DISPLAY, HOLDING_NOTE_DISPLAY, HOLDING_NOTE_SEARCH, HOLDINGS_CALLNUMBER_DISPLAY, HOLDINGS_CALLNUMBER_PREFIX_DISPLAY, HOLDINGS_CALLNUMBER_PREFIX_SEARCH, HOLDINGS_CALLNUMBER_SEARCH, HOLDINGS_COPYNUMBER_DISPLAY, HOLDINGS_COPYNUMBER_SEARCH, HOLDINGS_IDENTIFIER, HOLDINGS_LOCATION_DISPLAY, HOLDINGS_LOCATION_SEARCH, HOLDINGS_SHELVING_SCHEME_CODE_DISPLAY, HOLDINGS_SHELVING_SCHEME_CODE_SEARCH, HOLDINGS_SHELVING_SCHEME_VALUE_DISPLAY, HOLDINGS_SHELVING_SCHEME_VALUE_SEARCH, INSTANCE_IDENTIFIER, ITEM_BARCODE_DISPLAY, ITEM_BARCODE_SORT, ITEM_DAMAGED_FLAG_DISPLAY, ITEM_DAMAGED_FLAG_SEARCH, ITEM_IDENTIFIER_DISPLAY, ITEM_IDENTIFIER_SEARCH, ITEM_PART_DISPLAY, ITEM_PART_SEARCH, ITEM_STATUS_DISPLAY, ITEM_STATUS_SEARCH, ITEM_STATUS_SORT, ITEM_TYPE_CODE_VALUE_DISPLAY, ITEM_TYPE_CODE_VALUE_SEARCH, ITEM_TYPE_DISPLAY, ITEM_TYPE_FULL_VALUE_DISPLAY, ITEM_TYPE_FULL_VALUE_SEARCH, ITEM_TYPE_SEARCH, ITEM_URI_DISPLAY, ITEM_URI_SEARCH, ITEMNOTE_TYPE_DISPLAY, ITEMNOTE_VALUE_DISPLAY, LOCATION_LEVEL_DISPLAY, LOCATION_LEVEL_NAME_DISPLAY, LOCATION_LEVEL_NAME_SEARCH, LOCATION_LEVEL_SEARCH, LOCATION_LEVEL_SORT, MISSING_PIECE_COUNT_DISPLAY, MISSING_PIECE_COUNT_SEARCH, MISSING_PIECE_FLAG_DISPLAY, MISSING_PIECE_FLAG_NOTE_DISPLAY, MISSING_PIECE_FLAG_NOTE_SEARCH, MISSING_PIECE_FLAG_SEARCH, NUMBER_OF_PIECES_DISPLAY, NUMBER_OF_PIECES_SEARCH, NUMBER_OF_RENEW, PURCHASE_ORDER_LINE_ITEM_IDENTIFIER_DISPLAY, PURCHASE_ORDER_LINE_ITEM_IDENTIFIER_SEARCH, RECEIPT_STATUS_DISPLAY, RECEIPT_STATUS_SEARCH, SHELVING_ORDER_CODE_DISPLAY, SHELVING_ORDER_CODE_SEARCH, SHELVING_ORDER_DISPLAY, SHELVING_ORDER_SEARCH, SHELVING_ORDER_SORT, SHELVING_ORDER_VALUE_DISPLAY, SHELVING_ORDER_VALUE_SEARCH, SHELVING_SCHEME_CODE_DISPLAY, SHELVING_SCHEME_CODE_SEARCH, SHELVING_SCHEME_VALUE_DISPLAY, SHELVING_SCHEME_VALUE_SEARCH, STATISTICAL_SEARCHING_CODE_VALUE_DISPLAY, STATISTICAL_SEARCHING_CODE_VALUE_SEARCH, STATISTICAL_SEARCHING_FULL_VALUE_DISPLAY, STATISTICAL_SEARCHING_FULL_VALUE_SEARCH, TEMPORARY_ITEM_TYPE_CODE_VALUE_DISPLAY, TEMPORARY_ITEM_TYPE_CODE_VALUE_SEARCH, TEMPORARY_ITEM_TYPE_FULL_VALUE_DISPLAY, TEMPORARY_ITEM_TYPE_FULL_VALUE_SEARCH, URI_DISPLAY, URI_SEARCH, VENDOR_LINE_ITEM_IDENTIFIER_DISPLAY, VENDOR_LINE_ITEM_IDENTIFIER_SEARCH, VOLUME_NUMBER_DISPLAY, VOLUME_NUMBER_LABEL_DISPLAY, VOLUME_NUMBER_LABEL_SEARCH, VOLUME_NUMBER_SEARCH
ALL_TEXT, AUTHOR_DISPLAY, AUTHOR_FACET, AUTHOR_SEARCH, AUTHOR_SORT, BIB_ID, BREAK_RELATION, CHECK_OUT_DUE_DATE_TIME, CLMS_RET_FLAG, CLMS_RET_FLAG_CRE_DATE, CLMS_RET_NOTE, COVERAGE_DISPLAY, COVERAGE_SEARCH, CREATE_RELATION, CREATED_BY, CURRENT_BORROWER, DATE_ENTERED, DATE_UPDATED, DESCRIPTION_DISPLAY, DESCRIPTION_SEARCH, DOC_CATEGORY, DOC_CATEGORY_VALUE, DOC_FORMAT, DOC_FORMAT_INSTANCE_VALUE, DOC_TYPE, DOC_TYPE_HOLDING_VALUE, DOC_TYPE_INSTANCE_VALUE, DOC_TYPE_ITEM_VALUE, DUE_DATE_TIME, EDITION_DISPLAY, EDITION_SEARCH, FORMAT_DISPLAY, FORMAT_FACET, FORMAT_SEARCH, GENRE_FACET, ID, IS_ANALYTIC, IS_SERIES, ISBN_DISPLAY, ISBN_NOT_NORMALIZED, ISBN_SEARCH, ISSN_DISPLAY, ISSN_SEARCH, ITEM_BARCODE_SEARCH, ITEM_IDENTIFIER, ITEM_STATUS_EFFECTIVE_DATE, JOURNAL_TITLE_DISPLAY, JOURNAL_TITLE_SEARCH, JOURNAL_TITLE_SORT, LANGUAGE_DISPLAY, LANGUAGE_FACET, LANGUAGE_SEARCH, LEADER, LEVEL1LOCATION_DISPLAY, LEVEL1LOCATION_SEARCH, LEVEL2LOCATION_DISPLAY, LEVEL2LOCATION_SEARCH, LEVEL3LOCATION_DISPLAY, LEVEL3LOCATION_SEARCH, LEVEL4LOCATION_DISPLAY, LEVEL4LOCATION_SEARCH, LEVEL5LOCATION_DISPLAY, LEVEL5LOCATION_SEARCH, LOCALID_DISPLAY, LOCALID_SEARCH, LOCATION_LEVEL_CAMPUS, LOCATION_LEVEL_COLLECTION, LOCATION_LEVEL_INSTITUTION, LOCATION_LEVEL_LIBRARY, LOCATION_LEVEL_SHELVING, PROXY_BORROWER, PUBLICATIONDATE_DISPLAY, PUBLICATIONDATE_FACET, PUBLICATIONDATE_SEARCH, PUBLICATIONDATE_SORT, PUBLISHER_DISPLAY, PUBLISHER_SEARCH, PUBLISHER_SORT, RELATION_DISPLAY, RELATION_SEARCH, STAFF_ONLY_FLAG, STATUS_DISPLAY, STATUS_SEARCH, STATUS_UPDATED_ON, SUBJECT_DISPLAY, SUBJECT_FACET, SUBJECT_SEARCH, SYSTEM_CONTROL_NUMBER, TITLE_DISPLAY, TITLE_SEARCH, TITLE_SORT, TYPE_DISPLAY, TYPE_SEARCH, UNIQUE_ID, UPDATED_BY, URI_SEARCH
Constructor and Description |
---|
ItemOlemlIndexer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBibAndHoldingsInfoToItem(org.apache.solr.common.SolrInputDocument solrInputDocument,
org.apache.solr.common.SolrInputDocument holdingsSolrInputDocument) |
protected void |
addBibInfoForHoldingsOrItems(org.apache.solr.common.SolrInputDocument solrInputDocument,
org.apache.solr.common.SolrDocument sourceDocument)
This method is used to index the bib info to holdings or items
|
protected void |
addBibInfoForHoldingsOrItems1(org.apache.solr.common.SolrInputDocument solrInputDocument,
org.apache.solr.common.SolrDocument sourceDocument) |
protected void |
buildSolrInputDocument(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments) |
protected void |
buildSolrInputDocumentForBatchProcess(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments,
org.apache.solr.common.SolrInputDocument holdingsSolrInputs) |
protected void |
deleteRecordInSolr(org.apache.solr.client.solrj.SolrServer solrServer,
String id) |
String |
getAllTextValueForItem(Item item) |
static ItemOlemlIndexer |
getInstance() |
String |
getNormalizedEnumeration(String enumation) |
protected org.apache.solr.common.SolrInputDocument |
getSolrInputFieldsForItem(Item itemDocument) |
protected void |
modifySolrDocForDestination(String holdingsId,
List<String> itemIds,
List<org.apache.solr.common.SolrInputDocument> solrInputDocumentListFinal) |
protected void |
modifySolrDocForSource(List<String> itemsIds,
String holdingsId,
List<org.apache.solr.common.SolrInputDocument> solrInputDocumentListFinal) |
String |
normalizeFloatForEnumeration(String floatStr,
int digitsB4) |
protected void |
processRecord(org.apache.solr.client.solrj.SolrServer solrServer,
String id,
List<org.apache.solr.common.SolrInputDocument> solrInputDocumentList)
Taking incoming documents and updating documents respectively
|
protected void |
rollback(org.apache.solr.client.solrj.SolrServer solrServer) |
protected void |
updateRecordInSolr(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments) |
protected void |
updateRecordInSolrForItem(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments,
org.apache.solr.common.SolrInputDocument holdingsSolrInputDocument) |
protected boolean |
validateCallNumber(String callNumber,
String codeValue) |
addBibInfoForHoldingsOrItems, addHoldingsInfoToBib, addHoldingsInfoToBib, addHoldingsInfoToItem, addItemInfoToBib, appendData, assignUUIDs, bind, bindAnalytics, buildLocationName, buildLocationNameAndLocationLevel, buildSolrInputDocFromSolrDoc, buildSolrInputDocFromSolrDoc, buildSortableCallNumber, create, createTree, createTrees, delete, getSolrDocumentBySolrId, getSolrDocumentByUUID, getSolrDocumentByUUIDs, indexAndDelete, indexSolrDocuments, processBibTrees, processDelete, removeFieldFromSolrInputDocument, transfer, unbindAll, unbindOne, update
public static ItemOlemlRecordProcessor itemOlemlRecordProcessor
public static XMLUtility xmlUtility
public ItemOlemlIndexer()
public static ItemOlemlIndexer getInstance()
protected void updateRecordInSolr(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments)
updateRecordInSolr
in class DocstoreSolrIndexService
protected void updateRecordInSolrForItem(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments, org.apache.solr.common.SolrInputDocument holdingsSolrInputDocument)
protected void buildSolrInputDocument(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments)
buildSolrInputDocument
in class DocstoreSolrIndexService
protected void buildSolrInputDocumentForBatchProcess(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments, org.apache.solr.common.SolrInputDocument holdingsSolrInputs)
protected org.apache.solr.common.SolrInputDocument getSolrInputFieldsForItem(Item itemDocument)
protected boolean validateCallNumber(String callNumber, String codeValue) throws OleDocStoreException
OleDocStoreException
protected void processRecord(org.apache.solr.client.solrj.SolrServer solrServer, String id, List<org.apache.solr.common.SolrInputDocument> solrInputDocumentList) throws IOException, org.apache.solr.client.solrj.SolrServerException
DocstoreSolrIndexService
processRecord
in class DocstoreSolrIndexService
IOException
org.apache.solr.client.solrj.SolrServerException
protected void deleteRecordInSolr(org.apache.solr.client.solrj.SolrServer solrServer, String id) throws IOException, org.apache.solr.client.solrj.SolrServerException
deleteRecordInSolr
in class DocstoreSolrIndexService
IOException
org.apache.solr.client.solrj.SolrServerException
protected void rollback(org.apache.solr.client.solrj.SolrServer solrServer)
rollback
in class DocstoreSolrIndexService
public String getNormalizedEnumeration(String enumation)
public String normalizeFloatForEnumeration(String floatStr, int digitsB4)
protected void modifySolrDocForDestination(String holdingsId, List<String> itemIds, List<org.apache.solr.common.SolrInputDocument> solrInputDocumentListFinal)
modifySolrDocForDestination
in class DocstoreSolrIndexService
protected void modifySolrDocForSource(List<String> itemsIds, String holdingsId, List<org.apache.solr.common.SolrInputDocument> solrInputDocumentListFinal)
modifySolrDocForSource
in class DocstoreSolrIndexService
protected void addBibAndHoldingsInfoToItem(org.apache.solr.common.SolrInputDocument solrInputDocument, org.apache.solr.common.SolrInputDocument holdingsSolrInputDocument)
protected void addBibInfoForHoldingsOrItems(org.apache.solr.common.SolrInputDocument solrInputDocument, org.apache.solr.common.SolrDocument sourceDocument)
DocstoreSolrIndexService
addBibInfoForHoldingsOrItems
in class DocstoreSolrIndexService
solrInputDocument
- - holdings or items solr input documentssourceDocument
- -protected void addBibInfoForHoldingsOrItems1(org.apache.solr.common.SolrInputDocument solrInputDocument, org.apache.solr.common.SolrDocument sourceDocument)
public String getAllTextValueForItem(Item item)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.