Class SearchUtil


  • public final class SearchUtil
    extends java.lang.Object
    Search related utilities.
    Since:
    16.1.0
    Version:
    $Revision$ $Date$
    • Method Detail

      • getSemanticSearchNumberOfResults

        public static int getSemanticSearchNumberOfResults​(ServiceInstanceConfig serviceInstanceConfig)
                                                    throws PortalException
        Returns the number of results to obtain in a semantic search.
        Parameters:
        serviceInstanceConfig - the service instance config
        Returns:
        the number of results to obtain in a semantic search.
        Throws:
        PortalException
        Since:
        16.1.0
      • getSemanticSearchWeight

        public static double getSemanticSearchWeight​(ServiceInstanceConfig serviceInstanceConfig)
                                              throws PortalException
        Returns the weight applied for semantic search.
        Parameters:
        serviceInstanceConfig - the service instance config
        Returns:
        the weight applied for semantic search.
        Throws:
        PortalException
        Since:
        16.1.0
      • getSemanticSearchMinSimilarity

        public static double getSemanticSearchMinSimilarity​(ServiceInstanceConfig serviceInstanceConfig)
                                                     throws PortalException
        Returns the minimum similarity for an item to be included in the results due to semantic search.
        Parameters:
        serviceInstanceConfig - the service instance.
        Returns:
        the minimum similarity.
        Throws:
        PortalException
        Since:
        16.1.0