FeedbackEvent

public struct FeedbackEvent

Feedback event describing user interactions with the search results. The client application can report these events back to the search service to be used for analyzing and improving the search service.

  • Creates a new instance of FeedbackEvent with given parameters.

    Declaration

    Swift

    public init(sessionID: UUID, type: FeedbackEventType, resultID: FeedbackResultID, position: Int, actionTime: Date)

    Parameters

    sessionID

    The ID used to start the search session. It must be a valid UUID version 4.

    type

    The action taken by the user.

    resultID

    The ID of the result chosen by the user.

    position

    The position of the chosen result in the list shown to the user, starting with 0.

    actionTime

    The time when the user interacted with the result.

  • The ID used to start the search session. It must be a valid UUID version 4.

    Declaration

    Swift

    public let sessionID: UUID
  • The action taken by the user.

    Declaration

    Swift

    public let type: FeedbackEventType
  • The ID of the result chosen by the user.

    Declaration

    Swift

    public let resultID: FeedbackResultID
  • The position of the chosen result in the list shown to the user, starting with 0.

    Declaration

    Swift

    public let position: Int
  • The time when the user interacted with the result.

    Declaration

    Swift

    public let actionTime: Date