Interface SearchManagerService

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static org.springframework.data.mongodb.core.aggregation.AggregationExpression convertDbRef​(java.lang.String fieldN)
      This is helper method which is provided prepared aggregation expression for DBRef structure
      java.util.List<GroupFilter> listFilters()
      This method collects all the list filters from the vendor's listing ID
      java.util.List<GroupFilter> listFilterValues​(java.lang.String filterId)
      This method collects all values from filter
      GroupFilter listingFeatureFromAttribute​(java.lang.String filterId, java.lang.String sellerSkuId)
      This method retrieves a feature for specific listing
      java.util.List<GroupFilter> logicalFilters()
      This method collects all the boolean filters from the vendor's listing ID
      java.util.List<GroupFilter> numericFilters()
      This method collects all the simple filters from the vendor's listing ID
      java.util.List<GroupFilter> numericFilterValues​(java.lang.String filterId)
      This method collects all values from filter
      static org.springframework.data.mongodb.core.aggregation.MatchOperation published()
      This is helper method which is provided prepared match criteria for aggregation
      java.util.List<GroupFilter> rangeFilters()
      This method collects all the range filters from the vendor's listing ID
      java.util.List<GroupFilter> rangeFilterValues​(java.lang.String filterId)
      This method collects all values from filter
      co.mastermindcms.modules.beans.SearchResponse search​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> request)
      This method does search requests and returns data as pages.
      java.util.List<GroupFilter> simpleFilters()
      This method collects all the simple filters from the vendor's listing ID
      java.util.List<GroupFilter> simpleFilterValues​(java.lang.String filterId)
      This method collects all values from filter
    • Method Detail

      • search

        co.mastermindcms.modules.beans.SearchResponse search​(java.util.LinkedHashMap<java.lang.String,​java.lang.Object> request)
        This method does search requests and returns data as pages.
        Parameters:
        request - search request as map
        Returns:
        database entities separated to pages
      • logicalFilters

        java.util.List<GroupFilter> logicalFilters()
        This method collects all the boolean filters from the vendor's listing ID
        Returns:
        the collection of all logical filters
      • rangeFilters

        java.util.List<GroupFilter> rangeFilters()
        This method collects all the range filters from the vendor's listing ID
        Returns:
        the collection of all range filters
      • simpleFilters

        java.util.List<GroupFilter> simpleFilters()
        This method collects all the simple filters from the vendor's listing ID
        Returns:
        the collection of all simple filters
      • numericFilters

        java.util.List<GroupFilter> numericFilters()
        This method collects all the simple filters from the vendor's listing ID
        Returns:
        the collection of all simple filters
      • listFilters

        java.util.List<GroupFilter> listFilters()
        This method collects all the list filters from the vendor's listing ID
        Returns:
        the collection of all list filters
      • rangeFilterValues

        java.util.List<GroupFilter> rangeFilterValues​(java.lang.String filterId)
        This method collects all values from filter
        Parameters:
        filterId - filter object identifier
        Returns:
        the list of all filter values
      • listFilterValues

        java.util.List<GroupFilter> listFilterValues​(java.lang.String filterId)
        This method collects all values from filter
        Parameters:
        filterId - filter object identifier
        Returns:
        the list of all filter values
      • simpleFilterValues

        java.util.List<GroupFilter> simpleFilterValues​(java.lang.String filterId)
        This method collects all values from filter
        Parameters:
        filterId - filter object identifier
        Returns:
        the list of all filter values
      • numericFilterValues

        java.util.List<GroupFilter> numericFilterValues​(java.lang.String filterId)
        This method collects all values from filter
        Parameters:
        filterId - filter object identifier
        Returns:
        the list of all filter values
      • listingFeatureFromAttribute

        GroupFilter listingFeatureFromAttribute​(java.lang.String filterId,
                                                java.lang.String sellerSkuId)
        This method retrieves a feature for specific listing
        Parameters:
        filterId - filter identifier
        sellerSkuId - listing identifier
        Returns:
        the value of listing feature
      • published

        static org.springframework.data.mongodb.core.aggregation.MatchOperation published()
        This is helper method which is provided prepared match criteria for aggregation
        Returns:
        criteria for published listing
      • convertDbRef

        static org.springframework.data.mongodb.core.aggregation.AggregationExpression convertDbRef​(java.lang.String fieldN)
        This is helper method which is provided prepared aggregation expression for DBRef structure
        Parameters:
        fieldN - the field name
        Returns:
        expression