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 requestvoid
trackQueryUsage
(String query) Track the usage of the provided queryvoid
trackRescorerUsage
(String name) Track the usage of the provided rescorervoid
trackRetrieverUsage
(String retriever) Track retrieve usagevoid
trackSectionUsage
(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
-