Interface ReindexService


  • public interface ReindexService
    Implementation specific logic for reindexing documents in real time.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void deleteByField​(String fieldName, String fieldValue, com.broadleafcommerce.search.api.type.IndexableType indexableType)
      Delete documents matching a field name and value.
      void reindex​(List<? extends com.broadleafcommerce.search.api.domain.Indexable<?>> indexables)
      Indexes or reindexes the provided Indexable objects.
    • Method Detail

      • reindex

        void reindex​(List<? extends com.broadleafcommerce.search.api.domain.Indexable<?>> indexables)
              throws com.broadleafcommerce.search.api.SearchIndexException
        Indexes or reindexes the provided Indexable objects.
        Parameters:
        indexables - the indexables to (re)index
        Throws:
        com.broadleafcommerce.search.api.SearchIndexException
      • deleteByField

        void deleteByField​(String fieldName,
                           String fieldValue,
                           com.broadleafcommerce.search.api.type.IndexableType indexableType)
                    throws com.broadleafcommerce.search.api.SearchIndexException
        Delete documents matching a field name and value.
        Parameters:
        fieldName - The document field name.
        fieldValue - The document field value.
        indexableType - The indexable type.
        Throws:
        com.broadleafcommerce.search.api.SearchIndexException - If the delete request fails for any reason.