|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.routing.command.SearchXMLObject atg.search.routing.command.search.Result
public class Result
A single result (answer) in QueryRequest.Response
,
SimilarDocsRequest.Response
,
or StructuredQueryRequest.Response
.
A Result is one-to-one with a document. It is an element of a group: see AnswerGroup
,
although answer groups are only accessible via SearchResultsResponse.getGroups()
.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Constructor Summary | |
---|---|
Result()
|
Method Summary | |
---|---|
atg.search.routing.command.search.InternalAnswerGroup |
createNewAnswerGroup()
Returns a new internal answer group for this result. |
boolean |
equals(java.lang.Object pObject)
|
int |
getAnswerGroup()
Returns the answer group for this result |
protected void |
getAttributeXML(java.lang.StringBuilder sb)
|
protected void |
getBodyXML(java.lang.StringBuilder sb)
|
java.lang.String |
getContentId()
Returns the content id of partition this came from |
java.lang.String |
getDebugInfo()
Debugging information about this result |
Document |
getDocument()
Document of the result |
java.lang.String |
getExcluded()
Returns the name:ID of the rule that WOULD have excluded this result if exclusion rules were enabled |
int |
getExcludedId()
Returns the id portion of the excluded name:id pair |
java.lang.String |
getExcludedName()
Returns the name portion of the excluded name:id pair |
java.lang.String |
getFeatures()
Any auxilliary statement features |
java.lang.String |
getField()
The structured statement ID |
int |
getId()
Result index in this response |
java.lang.String |
getMoveRule()
Returns the name:ID of the rule that moved this result to this position |
int |
getMoveRuleId()
Returns the id portion of the move rule |
java.lang.String |
getMoveRuleName()
Returns the name portion of the move rule |
int |
getOriginalAnswerGroup()
Returns the original answer group, prior to the merge |
SearchResultsResponse |
getParentResponse()
Returns a reference to the parent response that encloses this |
RankConfigCalculation |
getRankConfig()
Returns the rank config calculation when debug is enabled on the request |
java.lang.String |
getRequestTag()
Gets the xml element tag used in the request |
float |
getScore()
Relevancy of result |
java.lang.String |
getSortProp()
When the request specified group-by-property, this returns the sort property |
java.lang.String |
getText()
Returns the first matching statement text of the result. |
java.util.List<TextMatch> |
getTextMatches()
Returns the list of TextMatch es for this result. |
java.lang.String |
getType()
Type of result, generally the name of the statement field for structured content, SENTENCE for unstructured, and PREFANSWER for preferred answers |
void |
setAnswerGroup(int answerGroup)
Sets this result's answer group |
void |
setContentId(java.lang.String contentId)
Sets the content id of partition this came from |
void |
setDebugInfo(java.lang.String debugInfo)
Sets debug info from the engine |
void |
setDocument(Document document)
Sets the document for this result |
void |
setExcluded(java.lang.String pExcluded)
Sets the excluded rule |
void |
setFeatures(java.lang.String features)
Sets auxilliary statement features |
void |
setField(java.lang.String field)
Sets the structured statement ID |
void |
setId(int id)
Sets the result index in this response |
void |
setMoveRule(java.lang.String pMoveRule)
Sets the move rule |
void |
setParentResponse(SearchResultsResponse pParentResponse)
Sets a reference to the parent response that encloses this |
void |
setRankConfig(RankConfigCalculation pRankConfig)
Sets the rank config calculation |
void |
setScore(float score)
Sets the score |
void |
setSortProp(java.lang.String sortProp)
Sets the grouping property |
void |
setTextMatches(java.util.List<TextMatch> pTextMatches)
Sets the List of TextMatch es for this result. |
void |
setType(java.lang.String type)
Sets the type of result, generally the name of the statement field for structured content, SENTENCE for unstructured, and PREFANSWER for preferred answers |
Methods inherited from class atg.search.routing.command.SearchXMLObject |
---|
appendComplexXml, appendOptionalAttr, appendOptionalElem, appendOptionalElem, appendOptionalElem, appendOptionalValue, appendRequiredAttr, appendRequiredElem, appendRequiredElem, appendRequiredValue, getAllAttributeXML, getAllBodyXML, getDefaultXmlBytes, getParentXMLObject, getXmlPath, isPrintedFirstChild, setParentXMLObject, setPrintedFirstChild, toString, toXML, toXML |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public Result()
Method Detail |
---|
public boolean equals(java.lang.Object pObject)
equals
in class java.lang.Object
public SearchResultsResponse getParentResponse()
public void setParentResponse(SearchResultsResponse pParentResponse)
pParentResponse
- reference to the parent response that encloses thispublic java.lang.String getContentId()
getContentId
in interface Groupable
public void setContentId(java.lang.String contentId)
setContentId
in interface Groupable
contentId
- content id of index partition this came frompublic float getScore()
getScore
in interface Groupable
public void setScore(float score)
setScore
in interface Groupable
score
- the secorepublic int getId()
public void setId(int id)
setId
in interface Groupable
id
- result index in this responsepublic atg.search.routing.command.search.InternalAnswerGroup createNewAnswerGroup()
Groupable
createNewAnswerGroup
in interface Groupable
public int getAnswerGroup()
Groupable
getAnswerGroup
in interface Groupable
public void setAnswerGroup(int answerGroup)
Groupable
setAnswerGroup
in interface Groupable
answerGroup
- the answer grouppublic int getOriginalAnswerGroup()
Groupable
getOriginalAnswerGroup
in interface Groupable
public java.lang.String getType()
public void setType(java.lang.String type)
type
- the type of result, generally the name of the statement field for structured
content, SENTENCE for unstructured, and PREFANSWER for preferred answerspublic java.lang.String getField()
public void setField(java.lang.String field)
field
- the structured statement IDpublic java.lang.String getSortProp()
Groupable
getSortProp
in interface Groupable
public void setSortProp(java.lang.String sortProp)
sortProp
- the grouping propertypublic java.lang.String getFeatures()
public void setFeatures(java.lang.String features)
features
- auxilliary statement featurespublic java.lang.String getText()
getTextMatches()
.
public java.util.List<TextMatch> getTextMatches()
TextMatch
es for this result. See getText()
.
TextMatch
es for this resultpublic void setTextMatches(java.util.List<TextMatch> pTextMatches)
TextMatch
es for this result.
pTextMatches
- public Document getDocument()
getDocument
in interface Groupable
public void setDocument(Document document)
document
- the documentpublic java.lang.String getDebugInfo()
public void setDebugInfo(java.lang.String debugInfo)
debugInfo
- debug info from the enginepublic void setRankConfig(RankConfigCalculation pRankConfig)
pRankConfig
- the rank config calculationpublic RankConfigCalculation getRankConfig()
public void setMoveRule(java.lang.String pMoveRule)
pMoveRule
- the move rulepublic void setExcluded(java.lang.String pExcluded)
pExcluded
- public java.lang.String getMoveRule()
public java.lang.String getExcluded()
public java.lang.String getMoveRuleName()
public int getMoveRuleId()
public java.lang.String getExcludedName()
public int getExcludedId()
public java.lang.String getRequestTag()
getRequestTag
in class atg.search.routing.command.SearchXMLObject
protected void getAttributeXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getAttributeXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
protected void getBodyXML(java.lang.StringBuilder sb) throws atg.search.routing.command.IncompleteCommandException
getBodyXML
in class atg.search.routing.command.SearchXMLObject
atg.search.routing.command.IncompleteCommandException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |