Interface DSpaceObjectIndexFactory<T extends IndexableDSpaceObject,S extends DSpaceObject>
- All Superinterfaces:
IndexFactory<T,S>
- All Known Subinterfaces:
CollectionIndexFactory,CommunityIndexFactory,ItemIndexFactory
- All Known Implementing Classes:
CollectionIndexFactoryImpl,CommunityIndexFactoryImpl,DSpaceObjectIndexFactoryImpl,ItemIndexFactoryImpl
public interface DSpaceObjectIndexFactory<T extends IndexableDSpaceObject,S extends DSpaceObject>
extends IndexFactory<T,S>
Factory interface for indexing/retrieving DSpaceObjects in the search core
- Author:
- Kevin Van de Velde (kevin at atmire dot com)
-
Method Summary
Modifier and TypeMethodDescriptiongetLocations(Context context, T indexableDSpaceObject) Return a list of the identifiers from the parents for the provided IndexableObject, communities will be prepended by "m", collections b "c"voidstoreCommunityCollectionLocations(org.apache.solr.common.SolrInputDocument doc, List<String> locations) Store the provided locations in the solr documentMethods inherited from interface org.dspace.discovery.indexobject.factory.IndexFactory
buildDocument, buildNewDocument, delete, delete, deleteAll, findAll, findIndexableObject, getIndexableObjects, getType, supports, writeDocument
-
Method Details
-
getLocations
Return a list of the identifiers from the parents for the provided IndexableObject, communities will be prepended by "m", collections b "c"- Parameters:
context- DSpace context object- Returns:
- A list of community identifiers with "m" prepended to every one
- Throws:
SQLException- If database error
-
storeCommunityCollectionLocations
void storeCommunityCollectionLocations(org.apache.solr.common.SolrInputDocument doc, List<String> locations) Store the provided locations in the solr document- Parameters:
doc- The solr input documentlocations- The locations to be stored
-