public class Results
extends java.lang.Object
The results object contains a reference to all the objects that come back from the search service.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
area |
protected DebugInfo |
debugInfo |
protected java.lang.String |
id |
protected java.lang.String |
query |
protected java.util.List<Record> |
records |
| Constructor and Description |
|---|
Results() |
| Modifier and Type | Method and Description |
|---|---|
Results |
addWarning(java.lang.String warning) |
Results |
addWarnings(java.util.Collection<java.lang.String> warnings) |
java.lang.String |
getArea() |
java.util.List<Navigation> |
getAvailableNavigation() |
java.lang.String |
getBiasingProfile() |
java.lang.String |
getCorrectedQuery() |
java.util.List<java.lang.String> |
getDidYouMean() |
java.lang.String |
getErrors() |
java.lang.String |
getId() |
MatchStrategy |
getMatchStrategy() |
java.lang.String |
getOriginalQuery() |
Request |
getOriginalRequest() |
PageInfo |
getPageInfo() |
java.lang.String |
getQuery() |
java.util.List<Record> |
getRecords() |
java.lang.String |
getRedirect()
Note, if a redirect is triggered the engine does not send back records. |
java.util.List<java.lang.String> |
getRelatedQueries() |
java.util.List<java.lang.String> |
getRewrites() |
java.util.List<Navigation> |
getSelectedNavigation() |
java.lang.String |
getSelectedNavigationJson() |
java.util.List<Metadata> |
getSiteParams() |
Template |
getTemplate() |
long |
getTotalRecordCount() |
java.util.List<java.lang.String> |
getWarnings() |
Results |
setArea(java.lang.String area) |
Results |
setAvailableNavigation(java.util.List<Navigation> availableNavigation) |
Results |
setBiasingProfile(java.lang.String biasingProfile) |
Results |
setCorrectedQuery(java.lang.String correctedQuery) |
Results |
setDidYouMean(java.util.List<java.lang.String> didYouMean) |
Results |
setErrors(java.lang.String errors) |
Results |
setId(java.lang.String id) |
Results |
setMatchStrategy(MatchStrategy matchStrategy) |
Results |
setOriginalQuery(java.lang.String originalQuery) |
Results |
setOriginalRequest(Request originalRequest) |
Results |
setPageInfo(PageInfo pageInfo) |
Results |
setQuery(java.lang.String query) |
Results |
setRecords(java.util.List<Record> records) |
Results |
setRedirect(java.lang.String redirect) |
Results |
setRelatedQueries(java.util.List<java.lang.String> relatedQueries) |
Results |
setRewrites(java.util.List<java.lang.String> rewrites) |
Results |
setSelectedNavigation(java.util.List<Navigation> selectedNavigation) |
Results |
setSiteParams(java.util.List<Metadata> siteParams) |
Results |
setTemplate(Template template) |
Results |
setTotalRecordCount(long totalRecordCount) |
Results |
setWarnings(java.util.List<java.lang.String> warnings) |
protected java.lang.String id
protected java.lang.String area
protected java.lang.String query
protected java.util.List<Record> records
protected DebugInfo debugInfo
public java.lang.String getId()
public Results setId(java.lang.String id)
id - Set the unique identifier for this Results object.public java.lang.String getArea()
public Results setArea(java.lang.String area)
area - Set the area to run the query againstpublic java.util.List<java.lang.String> getDidYouMean()
public Results setDidYouMean(java.util.List<java.lang.String> didYouMean)
didYouMean - Set the listpublic java.util.List<java.lang.String> getRelatedQueries()
public Results setRelatedQueries(java.util.List<java.lang.String> relatedQueries)
relatedQueries - Set the related queries for a search termpublic java.util.List<Record> getRecords()
public Results setRecords(java.util.List<Record> records)
records - Set the records.public Template getTemplate()
public Results setTemplate(Template template)
template - Set the templatepublic PageInfo getPageInfo()
public Results setPageInfo(PageInfo pageInfo)
pageInfo - Set the page infopublic java.util.List<Navigation> getAvailableNavigation()
public Results setAvailableNavigation(java.util.List<Navigation> availableNavigation)
availableNavigation - Set the available navigation.public java.util.List<Navigation> getSelectedNavigation()
public Results setSelectedNavigation(java.util.List<Navigation> selectedNavigation)
selectedNavigation - Set the selected refinementspublic java.lang.String getSelectedNavigationJson()
public java.lang.String getRedirect()
Note, if a redirect is triggered the engine does not send back records.
public Results setRedirect(java.lang.String redirect)
redirect - Set the redirectpublic java.lang.String getErrors()
public Results setErrors(java.lang.String errors)
errors - Set errors.public long getTotalRecordCount()
public Results setTotalRecordCount(long totalRecordCount)
totalRecordCount - Set the total record count.public java.util.List<Metadata> getSiteParams()
public Results setSiteParams(java.util.List<Metadata> siteParams)
siteParams - Set the site metadatapublic java.lang.String getOriginalQuery()
public Results setOriginalQuery(java.lang.String originalQuery)
originalQuery - Sets the original query sent to the search servicepublic java.lang.String getCorrectedQuery()
public Results setCorrectedQuery(java.lang.String correctedQuery)
correctedQuery - Sets the corrected query sent to the engine, if auto-correction is enabledpublic java.lang.String getQuery()
public Results setQuery(java.lang.String query)
query - Sets the query sent to the engine, after query rewrites are appliedpublic java.util.List<java.lang.String> getRewrites()
public Results setRewrites(java.util.List<java.lang.String> rewrites)
rewrites - Set the rewrites that occurredpublic java.lang.String getBiasingProfile()
public Results setBiasingProfile(java.lang.String biasingProfile)
biasingProfile - Set the biasing profile in effectpublic java.util.List<java.lang.String> getWarnings()
public Results setWarnings(java.util.List<java.lang.String> warnings)
warnings - Set warnings.public Results addWarnings(java.util.Collection<java.lang.String> warnings)
warnings - The warnings to addpublic Results addWarning(java.lang.String warning)
warning - The warning to addpublic MatchStrategy getMatchStrategy()
public Results setMatchStrategy(MatchStrategy matchStrategy)
matchStrategy - Set the match strategy in effectpublic Request getOriginalRequest()
Copyright © 2013–2016 GroupBy Inc.. All rights reserved.