Interface ItemIndexFactory
-
- All Superinterfaces:
DSpaceObjectIndexFactory<IndexableItem,Item>,IndexFactory<IndexableItem,Item>
- All Known Implementing Classes:
ItemIndexFactoryImpl
public interface ItemIndexFactory extends DSpaceObjectIndexFactory<IndexableItem,Item>
Factory interface for indexing/retrieving items in the search core- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDiscoveryFields(org.apache.solr.common.SolrInputDocument doc, Context context, Item item, List<DiscoveryConfiguration> discoveryConfigurations)Store item fields in the solr document-
Methods inherited from interface org.dspace.discovery.indexobject.factory.DSpaceObjectIndexFactory
getLocations, storeCommunityCollectionLocations
-
Methods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildDocument, buildNewDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
-
-
-
Method Detail
-
addDiscoveryFields
void addDiscoveryFields(org.apache.solr.common.SolrInputDocument doc, Context context, Item item, List<DiscoveryConfiguration> discoveryConfigurations) throws SQLException, IOExceptionStore 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
-
-