java.lang.Object
org.elasticsearch.usage.SearchUsage
Holds usage statistics for an incoming search request
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the extended data that has been tracked for the search requestReturns 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 rescorervoidtrackRetrieverExtendedDataUsage(String name, Set<String> values) voidtrackRetrieverUsage(String retriever) voidtrackSectionUsage(String section) Track the usage of the provided search section
-
Field Details
-
RETRIEVERS_NAME
- See Also:
-
-
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
-
trackRetrieverExtendedDataUsage
-
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 -
getExtendedDataUsage
Returns the extended data that has been tracked for the search request
-