Class 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.
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • SearchMonitorUtil

        public SearchMonitorUtil()
    • 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 page
        searchServiceInstanceConfig - the search service instance.
        searchQuery - the search's query.
        transaction - the transaction for persistence access.
        Returns:
        the monitor.
        Throws:
        PortalException
        Since:
        4.1.0