Interface ItemIndexFactory
- All Superinterfaces:
DSpaceObjectIndexFactory<IndexableItem,,Item> IndexFactory<IndexableItem,Item>
- All Known Implementing Classes:
ItemIndexFactoryImpl
Factory interface for indexing/retrieving items in the search core
- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDiscoveryFields(org.apache.solr.common.SolrInputDocument doc, Context context, Item item, List<DiscoveryConfiguration> discoveryConfigurations) Store item fields in the solr documentMethods inherited from interface org.dspace.discovery.indexobject.factory.DSpaceObjectIndexFactory
getLocations, storeCommunityCollectionLocationsMethods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildDocument, buildNewDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
Method Details
-
addDiscoveryFields
void addDiscoveryFields(org.apache.solr.common.SolrInputDocument doc, Context context, Item item, List<DiscoveryConfiguration> discoveryConfigurations) throws SQLException, IOException Store item fields in the solr document- Parameters:
doc- Solr input document which will be written to our discovery solr corecontext- DSpace context objectitem- Item for which we want to index our fields in the provided solr documentdiscoveryConfigurations- The discovery configuration which holds information for which item fields we should index- Throws:
SQLException- If database errorIOException- If IO error
-