Class Analytics
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.request.search.Analytics
-
public class Analytics extends Object
Allows you to group/tag requests for analytics
-
-
Constructor Summary
Constructors Constructor Description Analytics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsaddTag(@Max(64L) String tag)Add a tag to the requestbooleanequals(Object o)Set<String>getTags()Submit tags with the analytics parameter.inthashCode()AnalyticssetTags(Set<String> tags)Submit tags with the analytics parameter.AnalyticswithTags(String... tags)Submit tags with the analytics parameter.
-
-
-
Method Detail
-
addTag
public Analytics addTag(@Max(64L) @Max(64L) String tag)
Add a tag to the request- Parameters:
tag- The tag to add. Maximum length of 64- Returns:
- The Analytics object
-
withTags
public Analytics withTags(String... tags)
Submit tags with the analytics parameter. Tags can be used to enrich each query with unique information. Once added, a tag cannot be removed. Supports arrays.- Parameters:
tags- Array of strings representing the tags you’d like to apply to the query. You may submit up to 16 tags, and each may be up to 64 characters in length.- Returns:
- the tags
-
getTags
public Set<String> getTags()
Submit tags with the analytics parameter. Tags can be used to enrich each query with unique information. Once added, a tag cannot be removed. Supports arrays.- Returns:
- the tags
-
setTags
public Analytics setTags(Set<String> tags)
Submit tags with the analytics parameter. Tags can be used to enrich each query with unique information. Once added, a tag cannot be removed. Supports arrays.- Parameters:
tags- Array of strings representing the tags you’d like to apply to the query. You may submit up to 16 tags, and each may be up to 64 characters in length.- Returns:
this.
-
-