public class BibMarcIndexer extends DocstoreSolrIndexService implements BibConstants
| Modifier and Type | Field and Description |
|---|---|
static Map<String,String> |
FIELDS_TO_TAGS_2_EXCLUDE_MAP |
static Map<String,String> |
FIELDS_TO_TAGS_2_INCLUDE_MAP |
ID_FIELD_PREFIXALL_TEXT, AUTHOR_DISPLAY, AUTHOR_FACET, AUTHOR_SEARCH, AUTHOR_SORT, BIB_ID, 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, ISBN_DISPLAY, ISBN_NOT_NORMALIZED, ISBN_SEARCH, ISSN_DISPLAY, 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_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 |
|---|
BibMarcIndexer() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String holdingsId,
List<String> bibIds) |
Object |
buildFieldValue(String fieldName,
BibMarcRecord record)
Method to build Field Value for a given field Name and given record.
|
Object |
buildPublicationDateFacetValue(String publicationDate,
String publicationEndDate) |
List<String> |
buildPublicationDateFacetValues(List<String> publicationDates)
Builds the facet values for the given publication dates.
|
org.apache.solr.common.SolrInputDocument |
buildSolrInputDocument(BibMarcRecord record)
Method to build Solr Input Document from a given Work Bib Marc Record
|
protected void |
buildSolrInputDocument(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments) |
void |
createTree(Object object) |
void |
createTrees(Object object) |
protected void |
deleteRecordInSolr(org.apache.solr.client.solrj.SolrServer solrServer,
String id) |
String |
extractPublicationDateWithRegex(String publicationDate) |
String |
getAllText(BibMarcRecord record)
Method to give all_text field to a given record.
|
static BibMarcIndexer |
getInstance() |
String |
getRecordFormat(BibMarcRecord record)
Method to get Record Format.
|
List<String> |
getSortString(List<String> list) |
String |
getSortString(String str) |
protected void |
setCommonFields(Bib bib,
org.apache.solr.common.SolrInputDocument solrInputDocument) |
protected void |
updateRecordInSolr(Object object,
List<org.apache.solr.common.SolrInputDocument> solrInputDocuments) |
assignUUIDs, buildSolrInputDocFromSolrDoc, buildSolrInputDocFromSolrDoc, create, delete, getSolrDocumentBySolrId, getSolrDocumentByUUID, getSolrDocumentByUUIDs, indexSolrDocuments, modifySolrDocForDestination, modifySolrDocForSource, transfer, updatepublic static Map<String,String> FIELDS_TO_TAGS_2_INCLUDE_MAP
public static Map<String,String> FIELDS_TO_TAGS_2_EXCLUDE_MAP
public BibMarcIndexer()
public static BibMarcIndexer getInstance()
public void createTree(Object object)
createTree in interface DocumentIndexercreateTree in class DocstoreSolrIndexServicepublic void createTrees(Object object)
createTrees in interface DocumentIndexercreateTrees in class DocstoreSolrIndexServiceprotected void buildSolrInputDocument(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments)
buildSolrInputDocument in class DocstoreSolrIndexServiceprotected void setCommonFields(Bib bib, org.apache.solr.common.SolrInputDocument solrInputDocument)
protected void updateRecordInSolr(Object object, List<org.apache.solr.common.SolrInputDocument> solrInputDocuments)
updateRecordInSolr in class DocstoreSolrIndexServiceprotected void deleteRecordInSolr(org.apache.solr.client.solrj.SolrServer solrServer, String id) throws IOException, org.apache.solr.client.solrj.SolrServerException
deleteRecordInSolr in class DocstoreSolrIndexServiceIOExceptionorg.apache.solr.client.solrj.SolrServerExceptionpublic org.apache.solr.common.SolrInputDocument buildSolrInputDocument(BibMarcRecord record)
record - public Object buildFieldValue(String fieldName, BibMarcRecord record)
fieldName - - field name should be one of the defined names in WorkBibMarcDocBuilderrecord - - WorkBibMarcRecordpublic String getAllText(BibMarcRecord record)
record - public String getRecordFormat(BibMarcRecord record)
record - public String extractPublicationDateWithRegex(String publicationDate)
public Object buildPublicationDateFacetValue(String publicationDate, String publicationEndDate)
publicationDate - publicationEndDate - public List<String> buildPublicationDateFacetValues(List<String> publicationDates)
publicationDates - public String getSortString(String str)
public List<String> getSortString(List<String> list)
public void bind(String holdingsId, List<String> bibIds) throws org.apache.solr.client.solrj.SolrServerException, IOException
bind in interface DocumentIndexerbind in class DocstoreSolrIndexServiceorg.apache.solr.client.solrj.SolrServerExceptionIOExceptionCopyright © 2004-2014 The Kuali Foundation. All Rights Reserved.