public class HoldingsOlemlIndexer extends DocstoreSolrIndexService implements HoldingsConstants
Modifier and Type | Field and Description |
---|---|
static XMLUtility |
xmlUtility |
ID_FIELD_PREFIX, MAX_WARM_SEARCH, MAX_WARM_SEARCH_COUNT, TIME_FOR_WARMING_SEARCHERS
ACCESS_LOCATION_DISPLAY, ACCESS_LOCATION_SEARCH, ACCESS_PASSWORD_DISPLAY, ACCESS_PASSWORD_SEARCH, ACCESS_STATUS_DISPLAY, ACCESS_STATUS_SEARCH, ACCESS_USERNAME_DISPLAY, ACCESS_USERNAME_SEARCH, ADMIN_PASSWORD_DISPLAY, ADMIN_PASSWORD_SEARCH, ADMIN_URL_DISPLAY, ADMIN_URL_SEARCH, ADMIN_USERNAME_DISPLAY, ADMIN_USERNAME_SEARCH, AUTHENTICATION_DISPLAY, AUTHENTICATION_SEARCH, BIB_IDENTIFIER, CALL_NUMBER_DISPLAY, CALL_NUMBER_PREFIX_DISPLAY, CALL_NUMBER_PREFIX_SEARCH, CALL_NUMBER_SEARCH, CALL_NUMBER_TYPE_DISPLAY, CALL_NUMBER_TYPE_NAME_SEARCH, CALL_NUMBER_TYPE_SEARCH, CLASSIFICATION_PART_DISPLAY, CLASSIFICATION_PART_SEARCH, COPY_NUMBER_DISPLAY, COPY_NUMBER_LABEL_DISPLAY, COPY_NUMBER_LABEL_SEARCH, COPY_NUMBER_SEARCH, DONOR_CODE_DISPLAY, DONOR_CODE_SEARCH, DONOR_NOTE_DISPLAY, DONOR_NOTE_SEARCH, DONOR_PUBLIC_DISPLAY, DONOR_PUBLIC_SEARCH, E_INSTANCE_COVERAGE_DATE, E_INSTANCE_PERPETUAL_ACCESS_DATE, E_PUBLISHER_DISPLAY, E_PUBLISHER_SEARCH, ERESOURCE_NAME_DISPLAY, EXTENT_OF_OWNERSHIP_NOTE_TYPE_DISPLAY, EXTENT_OF_OWNERSHIP_NOTE_VALUE_DISPLAY, EXTENT_OF_OWNERSHIP_TYPE_DISPLAY, HOLDING_NOTE_DISPLAY, HOLDING_NOTE_SEARCH, HOLDINGS_IDENTIFIER, ILL_DISPLAY, ILL_SEARCH, IMPRINT_DISPLAY, IMPRINT_SEARCH, INSTANCE_IDENTIFIER, ITEM_IDENTIFIER, ITEM_PART_DISPLAY, ITEM_PART_SEARCH, LINK_TEXT_DISPLAY, LINK_TEXT_SEARCH, LOCATION_LEVEL_DISPLAY, LOCATION_LEVEL_NAME_DISPLAY, LOCATION_LEVEL_NAME_SEARCH, LOCATION_LEVEL_SEARCH, LOCATION_LEVEL_SORT, NUMBER_OF_SIMULTANEOUS_USERS_DISPLAY, NUMBER_OF_SIMULTANEOUS_USERS_SEARCH, PERSIST_LINK_DISPLAY, PERSIST_LINK_SEARCH, PLATFORM_DISPLAY, PLATFORM_SEARCH, PROXIED_DISPLAY, PROXIED_SEARCH, PUBLIC_NOTE_DISPLAY, RECEIPT_STATUS_DISPLAY, RECEIPT_STATUS_SEARCH, SHELVING_ORDER_DISPLAY, SHELVING_ORDER_SEARCH, SHELVING_ORDER_SORT, 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, SUBSCRIPTION_DISPLAY, SUBSCRIPTION_SEARCH, SUBSCRIPTION_STATUS_DISPLAY, URI_DISPLAY, URI_SEARCH, URL_DISPLAY, URL_SEARCH
ALL_TEXT, AUTHOR_DISPLAY, AUTHOR_FACET, AUTHOR_SEARCH, AUTHOR_SORT, BIB_ID, CHECK_OUT_DUE_DATE_TIME, CLMS_RET_FLAG, CLMS_RET_FLAG_CRE_DATE, CLMS_RET_NOTE, COVERAGE_DISPLAY, COVERAGE_SEARCH, 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_STATUS_EFFECTIVE_DATE, JOURNAL_TITLE_DISPLAY, JOURNAL_TITLE_SEARCH, JOURNAL_TITLE_SORT, LANGUAGE_DISPLAY, LANGUAGE_FACET, LANGUAGE_SEARCH, LEADER, LOCALID_DISPLAY, LOCALID_SEARCH, PROXY_BORROWER, PUBLICATIONDATE_DISPLAY, PUBLICATIONDATE_FACET, PUBLICATIONDATE_SEARCH, PUBLICATIONDATE_SORT, PUBLISHER_DISPLAY, PUBLISHER_SEARCH, 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
Constructor and Description |
---|
HoldingsOlemlIndexer() |
Modifier and Type | Method and Description |
---|---|
void |
addInstIdToBib(String holdingsId,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments,
org.apache.solr.common.SolrDocument bibSolrDoc) |
protected void |
buildSolrInputDocument(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments) |
void |
createTree(Object object) |
protected void |
deleteRecordInSolr(org.apache.solr.client.solrj.SolrServer solrServer,
String id)
Deleting records and processing records to commit
|
String |
getAllTextValueForHoldings(OleHoldings oleHoldings) |
static HoldingsOlemlIndexer |
getInstance() |
List<org.apache.solr.common.SolrDocument> |
getSolrDocumentBySolrId(String uniqueId) |
protected org.apache.solr.common.SolrInputDocument |
getSolrInputFieldsForHoldings(Holdings holdings) |
protected org.apache.solr.common.SolrInputDocument |
getSolrInputFieldsForHoldings(Holdings holdings,
org.apache.solr.common.SolrInputDocument solrDocForHolding) |
protected void |
modifySolrDocForDestination(String destinationBibId,
List<String> holdingsIds,
List<org.apache.solr.common.SolrInputDocument> solrInputDocumentListFinal) |
protected void |
modifySolrDocForSource(List<String> holdingsIds,
String bibId,
List<org.apache.solr.common.SolrInputDocument> solrInputDocumentList) |
protected void |
processHoldingSolrDocumentForUpdate(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments,
org.apache.solr.common.SolrInputDocument solrDocForHolding) |
protected void |
processRecord(org.apache.solr.client.solrj.SolrServer solrServer,
String id,
List<org.apache.solr.common.SolrInputDocument> solrInputDocumentList)
Cheking all input document and modifying if it contains record to be mofiied
other wise get it from solar and modify and add it to input documents
|
protected void |
setCommonFields(Holdings holdings,
org.apache.solr.common.SolrInputDocument solrDocForHolding) |
protected void |
updateRecordInSolr(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments) |
addBibInfoForHoldingsOrItems, addBibInfoForHoldingsOrItems, addHoldingsInfoToItem, appendData, assignUUIDs, bind, bindAnalytics, buildLocationNameAndLocationLevel, buildSolrInputDocFromSolrDoc, buildSolrInputDocFromSolrDoc, buildSortableCallNumber, create, createTrees, delete, getSolrDocumentByUUID, getSolrDocumentByUUIDs, indexAndDelete, indexSolrDocuments, processBibTrees, processDelete, removeFieldFromSolrInputDocument, rollback, transfer, update
public static XMLUtility xmlUtility
public HoldingsOlemlIndexer()
public static HoldingsOlemlIndexer getInstance()
protected void buildSolrInputDocument(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments)
buildSolrInputDocument
in class DocstoreSolrIndexService
public void createTree(Object object)
createTree
in interface DocumentIndexer
createTree
in class DocstoreSolrIndexService
protected org.apache.solr.common.SolrInputDocument getSolrInputFieldsForHoldings(Holdings holdings, org.apache.solr.common.SolrInputDocument solrDocForHolding)
protected org.apache.solr.common.SolrInputDocument getSolrInputFieldsForHoldings(Holdings holdings)
protected void setCommonFields(Holdings holdings, org.apache.solr.common.SolrInputDocument solrDocForHolding)
protected void updateRecordInSolr(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments)
updateRecordInSolr
in class DocstoreSolrIndexService
protected void processHoldingSolrDocumentForUpdate(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments, org.apache.solr.common.SolrInputDocument solrDocForHolding)
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
processRecord
in class DocstoreSolrIndexService
solrServer
- id
- solrInputDocumentList
- 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
solrServer
- id
- IOException
org.apache.solr.client.solrj.SolrServerException
public List<org.apache.solr.common.SolrDocument> getSolrDocumentBySolrId(String uniqueId)
getSolrDocumentBySolrId
in class DocstoreSolrIndexService
protected void modifySolrDocForDestination(String destinationBibId, List<String> holdingsIds, List<org.apache.solr.common.SolrInputDocument> solrInputDocumentListFinal)
modifySolrDocForDestination
in class DocstoreSolrIndexService
protected void modifySolrDocForSource(List<String> holdingsIds, String bibId, List<org.apache.solr.common.SolrInputDocument> solrInputDocumentList)
modifySolrDocForSource
in class DocstoreSolrIndexService
public void addInstIdToBib(String holdingsId, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments, org.apache.solr.common.SolrDocument bibSolrDoc)
public String getAllTextValueForHoldings(OleHoldings oleHoldings)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.