Class ClickLog


  • public class ClickLog
    extends Log
    A click log, for search results or best bets (ex featured pages).
    • Field Detail

      • referer

        private final java.net.URL referer
      • rank

        private final int rank
      • target

        private final java.net.URI target
    • Constructor Detail

      • ClickLog

        public ClickLog​(java.util.Date date,
                        Collection collection,
                        Profile profile,
                        java.lang.String requestId,
                        java.net.URL referer,
                        int rank,
                        java.net.URI target,
                        ClickLog.Type type,
                        java.lang.String userId)
        Parameters:
        date - Date of the event
        collection - Collection
        profile - Profile
        requestId - Request identifier (IP, hash, '-')
        referer - URL of the search page where the click is coming from
        rank - Rank of the clicked result
        target - URL of the result (should be the one stored in the index)
        type - Type of click
        userId - User identifier, may be null
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getReferer

        public java.net.URL getReferer()
      • getRank

        public int getRank()
      • getTarget

        public java.net.URI getTarget()