Package lumis.service.search
Class SearchUtil
- java.lang.Object
-
- lumis.service.search.SearchUtil
-
public final class SearchUtil extends java.lang.Object
Search related utilities.- Since:
- 16.1.0
- Version:
- $Revision: 26157 $ $Date: 2024-01-13 11:35:03 -0300 (Sat, 13 Jan 2024) $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
getSemanticSearchMinSimilarity(ServiceInstanceConfig serviceInstanceConfig)
Returns the minimum similarity for an item to be included in the results due to semantic search.static int
getSemanticSearchNumberOfResults(ServiceInstanceConfig serviceInstanceConfig)
Returns the number of results to obtain in a semantic search.static double
getSemanticSearchWeight(ServiceInstanceConfig serviceInstanceConfig)
Returns the weight applied for semantic search.
-
-
-
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
-
-