Package lumis.doui.search
Class SearchMonitorUtil
- java.lang.Object
-
- lumis.doui.search.SearchMonitorUtil
-
public class SearchMonitorUtil extends java.lang.Object
Contains search monitoring constants and utility methods.- Since:
- 4.1.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_SEARCH
Key for search event.static java.lang.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(java.lang.String searchQuery, ITransaction transaction)
Returns a monitor for the "lumis.portal.monitor.ev.search" event.static java.util.List<java.lang.String>
getSearchTerms(java.lang.String searchQuery)
Returns the searched terms.static java.util.List<java.lang.String>
getSearchWords(java.lang.String searchQuery)
Returns the search query split into words
-
-
-
Field Detail
-
STRING_RESOURCE_PATH
public static final java.lang.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 java.lang.String EVENT_SEARCH
Key for search event.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSearchTerms
public static java.util.List<java.lang.String> getSearchTerms(java.lang.String searchQuery)
Returns the searched terms.- Parameters:
searchQuery
- the user input.- Returns:
- the searched terms.
- Since:
- 10.2.0
-
getSearchWords
public static java.util.List<java.lang.String> getSearchWords(java.lang.String searchQuery)
Returns the search query split into words- Parameters:
searchQuery
-- Returns:
- Since:
- 9.0.0
-
getSearchMonitor
public static IMonitor getSearchMonitor(java.lang.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
-
-