Class SearchUsage

java.lang.Object
org.elasticsearch.usage.SearchUsage

public final class SearchUsage extends Object
Holds usage statistics for an incoming search request
  • Constructor Details

    • SearchUsage

      public SearchUsage()
  • Method Details

    • trackQueryUsage

      public void trackQueryUsage(String query)
      Track the usage of the provided query
    • trackSectionUsage

      public void trackSectionUsage(String section)
      Track the usage of the provided search section
    • getQueryUsage

      public Set<String> getQueryUsage()
      Returns the query types that have been used at least once in the tracked search request
    • getSectionsUsage

      public Set<String> getSectionsUsage()
      Returns the search section names that have been used at least once in the tracked search request