java.lang.Object
org.elasticsearch.usage.SearchUsage
Holds usage statistics for an incoming search request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the query types that have been used at least once in the tracked search requestReturns the rescorer types that have been used at least once in the tracked search requestReturns the retriever names that have been used at least once in the tracked search requestReturns the search section names that have been used at least once in the tracked search requestvoidtrackQueryUsage(String query) Track the usage of the provided queryvoidtrackRescorerUsage(String name) Track the usage of the provided rescorervoidtrackRetrieverUsage(String retriever) Track retrieve usagevoidtrackSectionUsage(String section) Track the usage of the provided search section
-
Constructor Details
-
SearchUsage
public SearchUsage()
-
-
Method Details
-
trackQueryUsage
Track the usage of the provided query -
trackSectionUsage
Track the usage of the provided search section -
trackRescorerUsage
Track the usage of the provided rescorer -
trackRetrieverUsage
Track retrieve usage -
getQueryUsage
Returns the query types that have been used at least once in the tracked search request -
getRescorerUsage
Returns the rescorer types that have been used at least once in the tracked search request -
getSectionsUsage
Returns the search section names that have been used at least once in the tracked search request -
getRetrieverUsage
Returns the retriever names that have been used at least once in the tracked search request
-