convertedObjectsAfterSearch method
void
convertedObjectsAfterSearch({
- required String indexName,
- required String eventName,
- required String queryID,
- required Iterable<
String> objectIDs, - DateTime? timestamp,
override
Track a hits conversion after search event.
Optional custom timestamp
can be provided.
Implementation
@override
void convertedObjectsAfterSearch({
required String indexName,
required String eventName,
required String queryID,
required Iterable<String> objectIDs,
DateTime? timestamp,
}) {
final events = objectIDs
.slices(_maxObjectIDsPerEvent)
.map(
(objectIDs) => Event.convertHitsAfterSearch(
eventName,
indexName,
userToken,
queryID,
objectIDs,
timestamp: timestamp,
),
)
.toList();
_send(events);
}