Package com.algolia.model.insights
Class ClickedObjectIDsAfterSearch
java.lang.Object
com.algolia.model.insights.ClickedObjectIDsAfterSearch
Click event after an Algolia request. Use this event to track when users click items in the
search results. If you're building your category pages with Algolia, you'll also use this event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddObjectIDs
(String objectIDsItem) addPositions
(Integer positionsItem) boolean
Can contain up to 64 ASCII characters.Get eventTypegetIndex()
Name of the Algolia index.List of object identifiers for items of an Algolia index.Position of the clicked objects in the search results.Unique identifier for a search query.Time of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time).Anonymous or pseudonymous user identifier.int
hashCode()
setEventName
(String eventName) setEventType
(ClickEvent eventType) setObjectIDs
(List<String> objectIDs) setPositions
(List<Integer> positions) setQueryID
(String queryID) setTimestamp
(Long timestamp) setUserToken
(String userToken) toString()
-
Constructor Details
-
ClickedObjectIDsAfterSearch
public ClickedObjectIDsAfterSearch()
-
-
Method Details
-
setEventName
-
getEventName
Can contain up to 64 ASCII characters. Consider naming events consistently—for example, by adopting Segment's [object-action](https://segment.com/academy/collecting-data/naming-conventions-for-clean-data/#the-object-action-framework) framework.- Returns:
- eventName
-
setEventType
-
getEventType
Get eventType- Returns:
- eventType
-
setIndex
-
getIndex
Name of the Algolia index.- Returns:
- index
-
setObjectIDs
-
addObjectIDs
-
getObjectIDs
List of object identifiers for items of an Algolia index.- Returns:
- objectIDs
-
setPositions
-
addPositions
-
getPositions
Position of the clicked objects in the search results. The first search result has a position of 1 (not 0). You must provide 1 `position` for each `objectID`.- Returns:
- positions
-
setQueryID
-
getQueryID
Unique identifier for a search query. The query ID is required for events related to search or browse requests. If you add `clickAnalytics: true` as a search request parameter, the query ID is included in the API response.- Returns:
- queryID
-
setUserToken
-
getUserToken
Anonymous or pseudonymous user identifier. > **Note**: Never include personally identifiable information in user tokens.- Returns:
- userToken
-
setTimestamp
-
getTimestamp
Time of the event in milliseconds in [Unix epoch time](https://wikipedia.org/wiki/Unix_time). By default, the Insights API uses the time it receives an event as its timestamp.- Returns:
- timestamp
-
equals
-
hashCode
public int hashCode() -
toString
-