|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.primus.searchstudio.Results
public class Results
Search results value object. Nearly always immutable.
Constructor Summary | |
---|---|
Results()
|
Method Summary | |
---|---|
void |
addError(atg.search.routing.command.SearchEngineError error)
Adds a request error from the search engine. |
void |
addGenericAction(com.primus.searchstudio.GenericActionItem genericItem)
Adds a generic query rule action item |
void |
addResult(Result result)
Add a single result and update group-by counts accordingly. |
java.util.List |
getAdvisorActions()
Returns the list of advisor actions. |
Categories |
getCategories()
returns the categories from a browse request or a query |
java.lang.String |
getDebugString()
Debug string associated with the results |
java.lang.String |
getDocProps()
Returns docProps used in the similar docs and structured queries |
int |
getElapsedTime()
Elapsed time for query to complete |
java.util.Collection |
getErrors()
|
com.primus.searchstudio.FeedbackReport |
getFeedbackReport()
Gets the feedback report |
java.util.List |
getGenericActions()
Returns the list of generic query rule action items. |
int |
getGroupCount()
Gets the number of answer groups |
java.util.List |
getPartitionResults()
|
ConstantQueryID |
getQueryId()
Deprecated. as of 2007.0 |
com.primus.searchstudio.QueryRule |
getQueryRule()
Returns query rule |
com.primus.searchstudio.QueryTerms |
getQueryTerms()
|
java.lang.String |
getQuestion()
|
Refinements |
getRefinements()
returns refinements |
java.util.List |
getRelatedQueries()
Deprecated. as of 2006.3. returns an empty list |
RelatedStatements |
getRelatedStatements()
return related statements |
com.primus.searchstudio.ReportDataResults |
getReportDataResults()
|
java.lang.String |
getRequestIdentifier()
|
long |
getRequestTime()
Returns the time of day of the response, in milliseconds since 1970 |
int |
getResponseCount()
returns number of responses as reported in result xml |
double |
getResponseTime()
|
java.lang.String |
getResponseXml()
The raw response XML. |
Result |
getResult(int index)
Get a single result. |
Result |
getResultById(int id)
Returns an individual result by ID |
int |
getResultCount()
Return the number of results. |
Result[] |
getResults()
Return an array of contained results. |
Result[] |
getResultsByDocument()
Returns an array of parent Result objects. |
java.util.List |
getResultsList()
Returns the internal list of results |
atg.search.routing.command.SearchEngineResponse |
getSearchEngineResponse()
|
atg.search.routing.SearchTargetNames |
getSearchTargetNames()
|
int |
getSize()
Returns the number number of results |
java.util.List |
getSpellingTerms()
Get spelling terms |
java.util.List |
getSuggestedCategories()
Gets the list of suggested categories |
float |
getThresh()
Returns the threshold level |
int |
getTop()
Returns the number of top results to be returned |
java.lang.String |
getUserQuestion()
|
java.lang.String |
getViewDocResult()
This could be a url or an entire document with highlighting |
ViewResult |
getViewResult()
Returns the highlighting info |
int |
hashCode()
Standard hash code method. |
void |
setCategories(Categories categories)
Sets the Categories result. |
void |
setDebugString(java.lang.String ds)
Sets the debug string associated with the results |
void |
setDocProps(java.lang.String docProps)
Sets docProps used in the similar docs and structured queries |
void |
setErrors(java.util.Collection errors)
Sets request errors from the search engine. |
void |
setGroupCount(int groupCount)
Sets the number of answer groups |
void |
setMaxResponseChars(int maxResponseChars)
Loop through all Result objects and set the maxResponseChars. |
void |
setPartitionResults(java.util.List pPartitionResults)
|
void |
setQueryId(ConstantQueryID queryId)
Deprecated. as of 2007.0 |
void |
setQueryTerms(com.primus.searchstudio.QueryTerms queryTerms)
|
void |
setQuestion(java.lang.String question)
|
void |
setRefinements(Refinements refinements)
set refinements |
void |
setReportDataResults(com.primus.searchstudio.ReportDataResults pReportDataResults)
sets report data results |
void |
setRequestIdentifier(java.lang.String requestIdentifier)
An identifier generated on the server side that identifies the associated request. |
void |
setRequestTime(long pRequestTime)
Sets the time of day of the response, in milliseconds since 1970. |
void |
setResponseCount(int responseCount)
sets the number of responses. |
void |
setResponseTime(double pResponseTime)
|
void |
setResponseXml(java.lang.String responseXml)
|
void |
setResults(Result[] results)
Replaces the list of results. |
void |
setSearchEngineResponse(atg.search.routing.command.SearchEngineResponse response)
|
void |
setSearchTargetNames(atg.search.routing.SearchTargetNames pSearchTargetNames)
|
void |
setThresh(float thresh)
Sets the threshold value associated with the results |
void |
setTop(int top)
Sets how many top results |
void |
setUserQuestion(java.lang.String userQuestion)
|
void |
setViewDocResult(java.lang.String viewDocResult)
Used in the case of a view doc request during construction. |
void |
setViewResult(ViewResult viewResult)
Used in the case of a vic request during construction. |
java.lang.String |
toString()
Standard toString method. |
java.lang.String |
toSummaryString()
Standard toString method, but returns summary of Result objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Results()
Method Detail |
---|
public void setSearchTargetNames(atg.search.routing.SearchTargetNames pSearchTargetNames)
pSearchTargetNames
- target names actually used during the searchpublic atg.search.routing.SearchTargetNames getSearchTargetNames()
public java.lang.String getRequestIdentifier()
public void setRequestIdentifier(java.lang.String requestIdentifier)
requestIdentifier
- public long getRequestTime()
public void setRequestTime(long pRequestTime)
pRequestTime
- time of day of the response, in milliseconds since 1970public ConstantQueryID getQueryId()
public void setQueryId(ConstantQueryID queryId)
queryId
- the ID of the associated querypublic java.util.Collection getErrors()
public void setErrors(java.util.Collection errors)
errors
- Collection of SearchEngineErrorspublic void addError(atg.search.routing.command.SearchEngineError error)
error
- public int getResultCount()
public int getSize()
public Result[] getResults()
setResults(com.primus.searchstudio.Result[])
public java.util.List getResultsList()
public Result[] getResultsByDocument()
public void setResults(Result[] results)
results
- array of resultsgetResults()
public Result getResult(int index) throws java.lang.IndexOutOfBoundsException
index
- which result
Result
object
java.lang.IndexOutOfBoundsException
setResults(com.primus.searchstudio.Result[])
public void addResult(Result result)
result
- single result to addpublic void setMaxResponseChars(int maxResponseChars)
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 Result getResultById(int id)
id
- the id of the result
public void setCategories(Categories categories)
categories
- The categoriespublic Categories getCategories()
public RelatedStatements getRelatedStatements()
public void setRefinements(Refinements refinements)
refinements
- refinementspublic Refinements getRefinements()
public java.util.List getSuggestedCategories()
public java.util.List getSpellingTerms()
public int getElapsedTime()
public void setResponseCount(int responseCount)
responseCount
- result countpublic int getResponseCount()
public void setGroupCount(int groupCount)
groupCount
- number of groupspublic int getGroupCount()
public java.util.List getAdvisorActions()
public void addGenericAction(com.primus.searchstudio.GenericActionItem genericItem)
genericItem
- the generic actionpublic java.util.List getGenericActions()
public com.primus.searchstudio.FeedbackReport getFeedbackReport()
public java.util.List getRelatedQueries()
public com.primus.searchstudio.QueryRule getQueryRule()
public void setViewDocResult(java.lang.String viewDocResult)
viewDocResult
- the document or url that was requestedpublic java.lang.String getViewDocResult()
public ViewResult getViewResult()
public void setViewResult(ViewResult viewResult)
viewResult
- the viewresult was requestedpublic java.lang.String getDebugString()
public void setDebugString(java.lang.String ds)
ds
- debug stringpublic float getThresh()
public void setThresh(float thresh)
thresh
- public int getTop()
public void setTop(int top)
top
- how many top resultspublic java.lang.String getDocProps()
public void setDocProps(java.lang.String docProps)
docProps
- public java.lang.String getResponseXml()
SearchEngineRequest.setKeepingResponseData(boolean)
.
public void setReportDataResults(com.primus.searchstudio.ReportDataResults pReportDataResults)
pReportDataResults
- public void setResponseXml(java.lang.String responseXml)
responseXml
- raw response xml returned by search.public com.primus.searchstudio.ReportDataResults getReportDataResults()
public java.util.List getPartitionResults()
public void setPartitionResults(java.util.List pPartitionResults)
pPartitionResults
- List of SearchEngineResponsespublic double getResponseTime()
public void setResponseTime(double pResponseTime)
pResponseTime
- XML parse time in mspublic com.primus.searchstudio.QueryTerms getQueryTerms()
public void setQueryTerms(com.primus.searchstudio.QueryTerms queryTerms)
queryTerms
- query termspublic void setSearchEngineResponse(atg.search.routing.command.SearchEngineResponse response)
response
- search engine responsepublic atg.search.routing.command.SearchEngineResponse getSearchEngineResponse()
public void setQuestion(java.lang.String question)
question
- normalized user questionpublic java.lang.String getQuestion()
public void setUserQuestion(java.lang.String userQuestion)
userQuestion
- original user questionpublic java.lang.String getUserQuestion()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |