|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.primus.searchstudio.Response com.primus.searchstudio.Result
public class Result
Search result value object.
Field Summary |
---|
Constructor Summary | |
---|---|
Result()
default ctor |
|
Result(java.lang.String contextId,
java.lang.String groupId,
int docType,
java.lang.String url,
int resultType,
int resultCount,
java.lang.String clusterName,
java.lang.String responseId,
int answerGroup,
java.lang.String gotoLink)
Constructs a new result object |
Method Summary | |
---|---|
void |
addChildResult(Result childResult)
|
static java.util.Comparator |
byDocByScore()
Allows sorting of Results instances by document/by score. |
static java.util.Comparator |
byPaTimestamp()
Allows sorting of Result instances by prefanswer timestamp. |
static java.util.Comparator |
byScore()
Allows sorting of Result instances by score. |
static java.util.Comparator |
byTimestamp()
Allows sorting of Result instances by timestamp. |
boolean |
equals(java.lang.Object obj)
Standard equals function. |
double |
FindScoreAsPercent(int score)
Deprecated. |
void |
FindStars(int score)
Deprecated. |
java.lang.String |
getAnswerRange()
Gets the answerRange property. |
java.util.ArrayList |
getChildResults()
|
int |
getChildResultsCount()
|
java.lang.String |
getContentId()
Gets the contentId property. |
java.lang.String |
getDebugNodeString()
Gets the debug String. |
java.lang.String |
getDebugString()
Gets the debug String. |
java.lang.String |
getFaq()
Gets the faq property. |
java.lang.String |
getFullTitle()
Gets the full title. |
java.lang.String |
getHighlightInfo()
|
boolean |
getIsParentResult()
Deprecated. |
java.lang.String |
getIsParentResultAsString()
Deprecated. |
boolean |
getIsTruncated()
Gets the trancated variable. |
java.lang.String |
getNormalizedResponse()
Gets the normalized response String. |
int |
getParentResult()
|
long |
getPaTimestamp()
Gets the PrefAnswer modified timestamp property. |
java.lang.String |
getPaTimestampString()
Gets the prefanswer modify timestamp as a String. |
int |
getPopularity()
|
java.lang.String |
getRankCalc()
|
java.lang.String |
getReferenceId()
|
java.lang.String |
getRelevancyFile()
Deprecated. |
com.primus.frameworks.UniqueID |
getResponseId()
Gets the responseId property. |
double |
getScoreAsPercent()
Deprecated. |
java.lang.String |
getStars()
Deprecated. |
java.lang.String |
getSummary()
Gets the sumamry. |
long |
getTimestamp()
Gets the document modified timestamp property. |
java.lang.String |
getTitle()
Gets the title property. |
java.lang.String |
getUrl()
Gets the url property. |
java.util.ArrayList |
getVecDocumentSets()
|
int |
getVicDocType()
Gets the doc type of this result for use in a View in Context command. |
java.lang.String |
getVicDocTypeAsString()
Gets the string representation of the doc type of this result for use in a View in Context command. |
int |
hashCode()
Standard hash code method. |
boolean |
isParentResult()
|
void |
setChildResults(java.util.ArrayList childResults)
|
void |
setDebugNodeString(java.lang.String ds)
Sets the debug String. |
void |
setIsParentResult(boolean isParentResult)
|
void |
setIsTruncated(boolean isTruncated)
Sets the trancated variable. |
void |
setNormalizedResponse(java.lang.String norm)
Sets the normalized response String. |
void |
setParentResult(int parentResult)
|
void |
setPopularity(int p)
|
void |
setRankCalc(java.lang.String rankCalc)
|
void |
setVecDocumentSets(java.util.ArrayList vecDocSets)
|
java.lang.String |
toString()
Standard toString method. |
java.lang.String |
toSummaryString()
Standard toString method, but returns summaries of long text fields. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Result()
public Result(java.lang.String contextId, java.lang.String groupId, int docType, java.lang.String url, int resultType, int resultCount, java.lang.String clusterName, java.lang.String responseId, int answerGroup, java.lang.String gotoLink)
contextId
- context IDgroupId
- groupid of group the asnwer came fromdocType
- type of documenturl
- url of pageresultType
- type of resultresultCount
- result countclusterName
- name of clusterresponseId
- response IDanswerGroup
- answer groupgotoLink
- go to linkMethod Detail |
---|
public java.lang.String getContentId()
getContentId
in class Response
public long getTimestamp()
getTimestamp
in class Response
public long getPaTimestamp()
public java.lang.String getAnswerRange()
public java.lang.String getVicDocTypeAsString()
public int getVicDocType()
public java.lang.String getUrl()
getUrl
in class Response
public java.lang.String getSummary()
public java.lang.String getTitle()
getTitle
in class Response
public java.lang.String getFullTitle()
public boolean getIsTruncated()
public void setIsTruncated(boolean isTruncated)
public java.lang.String getFaq()
public com.primus.frameworks.UniqueID getResponseId()
getResponseId
in class Response
public java.lang.String getDebugString()
public java.lang.String getDebugNodeString()
public java.lang.String getNormalizedResponse()
public void setNormalizedResponse(java.lang.String norm)
public void setDebugNodeString(java.lang.String ds)
public java.lang.String getPaTimestampString()
getPaTimestampString
in class Response
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toSummaryString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static java.util.Comparator byScore()
public static java.util.Comparator byTimestamp()
public static java.util.Comparator byPaTimestamp()
public static java.util.Comparator byDocByScore()
public java.lang.String getRelevancyFile()
public void FindStars(int score)
score
- public java.lang.String getStars()
public double getScoreAsPercent()
public double FindScoreAsPercent(int score)
score
-
public java.lang.String getHighlightInfo()
public int getPopularity()
public void setPopularity(int p)
public void setIsParentResult(boolean isParentResult)
public boolean getIsParentResult()
public boolean isParentResult()
public java.lang.String getIsParentResultAsString()
public void setChildResults(java.util.ArrayList childResults)
public void addChildResult(Result childResult)
public java.util.ArrayList getChildResults()
public int getChildResultsCount()
public void setParentResult(int parentResult)
public int getParentResult()
public java.lang.String getReferenceId()
public java.util.ArrayList getVecDocumentSets()
public void setVecDocumentSets(java.util.ArrayList vecDocSets)
public java.lang.String getRankCalc()
public void setRankCalc(java.lang.String rankCalc)
rankCalc
- Result of ranking configuration calculation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |