Class SearchHistory
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.session.SearchHistory
-
@Entity public class SearchHistory extends java.lang.ObjectA single entry in theSearchUsersearch history- Since:
- v12.4
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringcollectionCollection identifier for this search eventprivate intcurrStartStarting page offsetprivate static org.apache.logging.log4j.Loggerlogstatic intMAX_QUERY_LENGTHprivate intnumRanksNumber of results per pageprivate java.lang.StringoriginalQueryOriginal query as entered by the userprivate java.lang.StringqueryAsProcessedQuery as processed by the query processorprivate java.util.DatesearchDateDate when the search was performedprivate java.lang.StringsearchParamsURL parameters used to perform the searchprivate intsearchParamsSignatureSignature identifying the search URL parameters regardless of the order of the parameters or their encodingprivate inttotalMatchingTotal number of results returnedprivate java.lang.StringuserIdID 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.StringgetCollection()Collection identifier for this search eventintgetCurrStart()Starting page offsetintgetNumRanks()Number of results per pagejava.lang.StringgetOriginalQuery()Original query as entered by the userjava.lang.StringgetQueryAsProcessed()Query as processed by the query processorjava.util.DategetSearchDate()Date when the search was performedjava.lang.StringgetSearchParams()intgetSearchParamsSignature()Signature identifying the search URL parameters regardless of the order of the parameters or their encodingintgetTotalMatching()Total number of results returnedjava.lang.StringgetUserId()ID of the User who performed the searchvoidsetCollection(java.lang.String collection)Collection identifier for this search eventvoidsetCurrStart(int currStart)Starting page offsetvoidsetNumRanks(int numRanks)Number of results per pagevoidsetOriginalQuery(java.lang.String q)voidsetQueryAsProcessed(java.lang.String q)voidsetSearchDate(java.util.Date searchDate)Date when the search was performedvoidsetSearchParams(java.lang.String params)Set the search parametersvoidsetTotalMatching(int totalMatching)Total number of results returnedvoidsetUserId(java.lang.String userId)ID of the User who performed the searchjava.lang.StringtoString()
-
-
-
Field Detail
-
log
private static final org.apache.logging.log4j.Logger log
-
MAX_QUERY_LENGTH
public static final int MAX_QUERY_LENGTH
- See Also:
- Constant Field Values
-
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
-
-
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:
toStringin classjava.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
-
-