Class DefaultIndexerQueriesExecutor

    • Constructor Detail

      • DefaultIndexerQueriesExecutor

        public DefaultIndexerQueriesExecutor()
    • Method Detail

      • setFlexibleSearchService

        public void setFlexibleSearchService​(FlexibleSearchService flexibleSearchService)
      • getPks

        public java.util.List<PK> getPks​(FacetSearchConfig facetSearchConfig,
                                         IndexedType indexedType,
                                         java.lang.String query,
                                         java.util.Map<java.lang.String,​java.lang.Object> queryParameters)
                                  throws IndexerException
        Description copied from interface: IndexerQueriesExecutor
        Gets the pks of all the items that will be indexed. The query will be run in the context of the current session user.
        Specified by:
        getPks in interface IndexerQueriesExecutor
        Parameters:
        facetSearchConfig - - the facet search configuration
        indexedType - - the indexed type
        query - - a string representing the query
        queryParameters - - the parameters for the query
        Returns:
        the list of pks that represent the items to be indexed
        Throws:
        IndexerException - in case of error
      • getItems

        public java.util.List<ItemModel> getItems​(FacetSearchConfig facetSearchConfig,
                                                  IndexedType indexedType,
                                                  java.util.Collection<PK> pks)
                                           throws IndexerException
        Description copied from interface: IndexerQueriesExecutor
        Gets the model instances based on a list of pks. The pks list passed as parameter is normally just a subset of all the items that will be indexed. The query will be run in the context of the current session user
        Specified by:
        getItems in interface IndexerQueriesExecutor
        Parameters:
        facetSearchConfig - - the facet search configuration
        indexedType - - the indexed type
        pks - - the list of pks
        Returns:
        the list of items to be indexed
        Throws:
        IndexerException - in case of error