Class DbSearchIndexImpl

java.lang.Object
org.fcrepo.search.impl.DbSearchIndexImpl
All Implemented Interfaces:
org.fcrepo.search.api.SearchIndex

@Component("searchIndexImpl") public class DbSearchIndexImpl extends Object implements org.fcrepo.search.api.SearchIndex
An implementation of the SearchIndex
Author:
dbernstein, whikloj
  • Field Details

  • Constructor Details

  • Method Details

    • setup

      @PostConstruct public void setup()
      Setup database table and connection
    • doSearch

      public org.fcrepo.search.api.SearchResult doSearch(org.fcrepo.search.api.SearchParameters parameters) throws org.fcrepo.search.api.InvalidQueryException
      Specified by:
      doSearch in interface org.fcrepo.search.api.SearchIndex
      Throws:
      org.fcrepo.search.api.InvalidQueryException
    • addUpdateIndex

      public void addUpdateIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.models.ResourceHeaders resourceHeaders)
      Specified by:
      addUpdateIndex in interface org.fcrepo.search.api.SearchIndex
    • removeFromIndex

      public void removeFromIndex(org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.kernel.api.identifiers.FedoraId fedoraId)
      Specified by:
      removeFromIndex in interface org.fcrepo.search.api.SearchIndex
    • reset

      public void reset()
      Specified by:
      reset in interface org.fcrepo.search.api.SearchIndex
    • clearAllTransactions

      public void clearAllTransactions()
      Specified by:
      clearAllTransactions in interface org.fcrepo.search.api.SearchIndex
    • commitTransaction

      public void commitTransaction(org.fcrepo.kernel.api.Transaction tx)
      Specified by:
      commitTransaction in interface org.fcrepo.search.api.SearchIndex
    • rollbackTransaction

      @Transactional(propagation=NOT_SUPPORTED) public void rollbackTransaction(org.fcrepo.kernel.api.Transaction tx)
      Specified by:
      rollbackTransaction in interface org.fcrepo.search.api.SearchIndex