Class SessionResult
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.session.SessionResult
-
- Direct Known Subclasses:
CartResult
,ClickHistory
@MappedSuperclass public abstract class SessionResult extends Object
Search result base class when used in a session context- Since:
- 12.5
-
-
Field Summary
Fields Modifier and Type Field Description private String
collection
private String
indexUrl
URI of the result in the indexstatic int
MAX_LEN_METADATA
Size of the column holding metadata fieldsstatic int
MAX_LEN_SUMMARY
Size of the column holding the summaryprivate @NonNull String
summary
Summary of the results biased towards the query that generated this resultprivate @NonNull String
title
Title of the resultprivate String
userId
ID of the user who clicked on the result
-
Constructor Summary
Constructors Constructor Description SessionResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getIndexUrl()
protected void
prePersist()
Truncate summary to maximum size allowed in the database before saving to databasevoid
setIndexUrl(URI uri)
-
-
-
Field Detail
-
MAX_LEN_SUMMARY
public static final int MAX_LEN_SUMMARY
Size of the column holding the summary- See Also:
- Constant Field Values
-
MAX_LEN_METADATA
public static final int MAX_LEN_METADATA
Size of the column holding metadata fields- See Also:
- Constant Field Values
-
userId
private String userId
ID of the user who clicked on the result
-
collection
private String collection
-
indexUrl
private String indexUrl
URI of the result in the index
-
title
@NonNull private @NonNull String title
Title of the result
-
summary
@NonNull private @NonNull String summary
Summary of the results biased towards the query that generated this result
-
-
Method Detail
-
getIndexUrl
public URI getIndexUrl()
- Returns:
- URI of the result in the index
-
setIndexUrl
public void setIndexUrl(URI uri)
- Parameters:
uri
- Sets the URI of the result in the index
-
prePersist
protected void prePersist()
Truncate summary to maximum size allowed in the database before saving to database
-
-