Class SearchHistory


  • @Entity
    public class SearchHistory
    extends java.lang.Object
    A single entry in the SearchUser search history
    Since:
    v12.4
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String collection
      Collection identifier for this search event
      private int currStart
      Starting page offset
      private static org.apache.logging.log4j.Logger log  
      static int MAX_QUERY_LENGTH  
      private int numRanks
      Number of results per page
      private java.lang.String originalQuery
      Original query as entered by the user
      private java.lang.String queryAsProcessed
      Query as processed by the query processor
      private java.util.Date searchDate
      Date when the search was performed
      private java.lang.String searchParams
      URL parameters used to perform the search
      private int searchParamsSignature
      Signature identifying the search URL parameters regardless of the order of the parameters or their encoding
      private int totalMatching
      Total number of results returned
      private java.lang.String userId
      ID of the User who performed the search
    • Constructor Summary

      Constructors 
      Constructor Description
      SearchHistory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCollection()
      Collection identifier for this search event
      int getCurrStart()
      Starting page offset
      int getNumRanks()
      Number of results per page
      java.lang.String getOriginalQuery()
      Original query as entered by the user
      java.lang.String getQueryAsProcessed()
      Query as processed by the query processor
      java.util.Date getSearchDate()
      Date when the search was performed
      java.lang.String getSearchParams()  
      int getSearchParamsSignature()
      Signature identifying the search URL parameters regardless of the order of the parameters or their encoding
      int getTotalMatching()
      Total number of results returned
      java.lang.String getUserId()
      ID of the User who performed the search
      void setCollection​(java.lang.String collection)
      Collection identifier for this search event
      void setCurrStart​(int currStart)
      Starting page offset
      void setNumRanks​(int numRanks)
      Number of results per page
      void setOriginalQuery​(java.lang.String q)  
      void setQueryAsProcessed​(java.lang.String q)  
      void setSearchDate​(java.util.Date searchDate)
      Date when the search was performed
      void setSearchParams​(java.lang.String params)
      Set the search parameters
      void setTotalMatching​(int totalMatching)
      Total number of results returned
      void setUserId​(java.lang.String userId)
      ID of the User who performed the search
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • log

        private static final org.apache.logging.log4j.Logger log
      • userId

        private java.lang.String userId
        ID of the User who performed the search
      • collection

        private java.lang.String collection
        Collection identifier for this search event
      • searchParamsSignature

        private int searchParamsSignature
        Signature identifying the search URL parameters regardless of the order of the parameters or their encoding
      • searchDate

        private java.util.Date searchDate
        Date when the search was performed
      • originalQuery

        private java.lang.String originalQuery
        Original query as entered by the user
      • queryAsProcessed

        private java.lang.String queryAsProcessed
        Query as processed by the query processor
      • totalMatching

        private int totalMatching
        Total number of results returned
      • currStart

        private int currStart
        Starting page offset
      • numRanks

        private int numRanks
        Number of results per page
      • searchParams

        private java.lang.String searchParams
        URL parameters used to perform the search
    • Constructor Detail

      • SearchHistory

        public SearchHistory()
    • Method Detail

      • setOriginalQuery

        public void setOriginalQuery​(java.lang.String q)
      • setQueryAsProcessed

        public void setQueryAsProcessed​(java.lang.String q)
      • getSearchParams

        public java.lang.String getSearchParams()
      • setSearchParams

        public void setSearchParams​(java.lang.String params)
        Set the search parameters
        Parameters:
        params -
      • toString

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

        public java.lang.String getUserId()
        ID of the User who performed the search
      • setUserId

        public void setUserId​(java.lang.String userId)
        ID of the User who performed the search
      • getCollection

        public java.lang.String getCollection()
        Collection identifier for this search event
      • setCollection

        public void setCollection​(java.lang.String collection)
        Collection identifier for this search event
      • getSearchParamsSignature

        public int getSearchParamsSignature()
        Signature identifying the search URL parameters regardless of the order of the parameters or their encoding
      • getSearchDate

        public java.util.Date getSearchDate()
        Date when the search was performed
      • setSearchDate

        public void setSearchDate​(java.util.Date searchDate)
        Date when the search was performed
      • getOriginalQuery

        public java.lang.String getOriginalQuery()
        Original query as entered by the user
      • getQueryAsProcessed

        public java.lang.String getQueryAsProcessed()
        Query as processed by the query processor
      • getTotalMatching

        public int getTotalMatching()
        Total number of results returned
      • setTotalMatching

        public void setTotalMatching​(int totalMatching)
        Total number of results returned
      • getCurrStart

        public int getCurrStart()
        Starting page offset
      • setCurrStart

        public void setCurrStart​(int currStart)
        Starting page offset
      • getNumRanks

        public int getNumRanks()
        Number of results per page
      • setNumRanks

        public void setNumRanks​(int numRanks)
        Number of results per page