Package lumis.doui.search
Class SearchMonitorUtil
- java.lang.Object
-
- lumis.doui.search.SearchMonitorUtil
-
public class SearchMonitorUtil extends Object
Contains search monitoring constants and utility methods.- Since:
- 4.1.0
- Version:
- $Revision: 21656 $ $Date: 2018-08-15 16:46:21 -0300 (Wed, 15 Aug 2018) $
-
-
Field Summary
Fields Modifier and Type Field Description static String
EVENT_SEARCH
Key for search event.static String
STRING_RESOURCE_PATH
The string resource path using for localizing search monitoring strings.
-
Constructor Summary
Constructors Constructor Description SearchMonitorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IMonitor
getSearchMonitor(String searchQuery, ITransaction transaction)
Returns a monitor for the "lumis.portal.monitor.ev.search" event.static List<String>
getSearchTerms(String searchQuery)
Returns the searched terms.static List<String>
getSearchWords(String searchQuery)
Returns the search query split into words
-
-
-
Field Detail
-
STRING_RESOURCE_PATH
public static final String STRING_RESOURCE_PATH
The string resource path using for localizing search monitoring strings.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
EVENT_SEARCH
public static final String EVENT_SEARCH
Key for search event.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSearchTerms
public static List<String> getSearchTerms(String searchQuery)
Returns the searched terms.- Parameters:
searchQuery
- the user input.- Returns:
- the searched terms.
- Since:
- 10.2.0
-
getSearchWords
public static List<String> getSearchWords(String searchQuery)
Returns the search query split into words- Parameters:
searchQuery
-- Returns:
- Since:
- 9.0.0
-
getSearchMonitor
public static IMonitor getSearchMonitor(String searchQuery, ITransaction transaction) throws PortalException
Returns a monitor for the "lumis.portal.monitor.ev.search" event.- Parameters:
page
- the pagesearchServiceInstanceConfig
- the search service instance.searchQuery
- the search's query.transaction
- the transaction for persistence access.- Returns:
- the monitor.
- Throws:
PortalException
- Since:
- 4.1.0
-
-