Class ItemCountDAOSolr

  • All Implemented Interfaces:
    ItemCountDAO

    public class ItemCountDAOSolr
    extends Object
    implements ItemCountDAO
    Discovery (Solr) driver implementing ItemCountDAO interface to look up item count information in communities and collections. Caching operations are intentionally not implemented because Solr already is our cache.
    • Field Detail

      • searchService

        @Autowired
        protected SearchService searchService
        Solr search service
    • Constructor Detail

      • ItemCountDAOSolr

        public ItemCountDAOSolr()
    • Method Detail

      • getCount

        public int getCount​(Context context,
                            DSpaceObject dso)
        Get the count of the items in the given container.
        Specified by:
        getCount in interface ItemCountDAO
        Parameters:
        context - DSpace context
        dso - DspaceObject
        Returns:
        count