public abstract class AbstractResults<R extends AbstractRecord<R>,T extends AbstractResults<R,T>>
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 java.util.List<Navigation> |
availableNavigation |
protected java.lang.String |
biasingProfile |
protected java.util.List<Cluster> |
clusters |
protected java.lang.String |
correctedQuery |
protected java.util.List<java.lang.String> |
didYouMean |
protected java.lang.String |
errors |
protected java.lang.String |
originalQuery |
protected PageInfo |
pageInfo |
protected java.lang.String |
query |
protected java.util.List<R> |
records |
protected java.lang.String |
redirect |
protected java.util.List<Navigation> |
selectedNavigation |
protected java.util.List<Metadata> |
siteParams |
protected Template |
template |
protected long |
totalRecordCount |
| Constructor and Description |
|---|
AbstractResults() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArea() |
java.util.List<Navigation> |
getAvailableNavigation() |
java.lang.String |
getBiasingProfile() |
java.util.List<Cluster> |
getClusters()
A cluster represents a set of documents that are considered closely
related based on a search term. |
java.lang.String |
getCorrectedQuery() |
java.util.List<java.lang.String> |
getDidYouMean() |
java.lang.String |
getErrors() |
java.lang.String |
getOriginalQuery() |
PageInfo |
getPageInfo() |
java.lang.String |
getQuery() |
java.util.List<R> |
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() |
T |
setArea(java.lang.String pArea) |
T |
setAvailableNavigation(java.util.List<Navigation> availableNavigation) |
T |
setBiasingProfile(java.lang.String biasingProfile) |
T |
setClusters(java.util.List<Cluster> clusters) |
T |
setCorrectedQuery(java.lang.String correctedQuery) |
T |
setDidYouMean(java.util.List<java.lang.String> didYouMean) |
T |
setErrors(java.lang.String errors) |
T |
setOriginalQuery(java.lang.String originalQuery) |
T |
setPageInfo(PageInfo pageInfo) |
T |
setQuery(java.lang.String query) |
T |
setRecords(java.util.List<R> records) |
T |
setRedirect(java.lang.String redirect) |
T |
setRelatedQueries(java.util.List<java.lang.String> relatedQueries) |
T |
setRewrites(java.util.List<java.lang.String> rewrites) |
T |
setSelectedNavigation(java.util.List<Navigation> selectedNavigation) |
T |
setSiteParams(java.util.List<Metadata> siteParams) |
T |
setTemplate(Template template) |
T |
setTotalRecordCount(long totalRecordCount) |
protected long totalRecordCount
protected java.lang.String area
protected java.lang.String biasingProfile
protected java.lang.String redirect
protected java.lang.String errors
protected java.lang.String query
protected java.lang.String originalQuery
protected java.lang.String correctedQuery
protected Template template
protected PageInfo pageInfo
protected java.util.List<Navigation> availableNavigation
protected java.util.List<Navigation> selectedNavigation
protected java.util.List<R extends AbstractRecord<R>> records
protected java.util.List<java.lang.String> didYouMean
protected java.util.List<Metadata> siteParams
protected java.util.List<Cluster> clusters
public java.lang.String getArea()
public T setArea(java.lang.String pArea)
pArea - Set the area to run the query againstpublic java.util.List<java.lang.String> getDidYouMean()
public T setDidYouMean(java.util.List<java.lang.String> didYouMean)
didYouMean - Set the listpublic java.util.List<java.lang.String> getRelatedQueries()
public T setRelatedQueries(java.util.List<java.lang.String> relatedQueries)
relatedQueries - Set the related queries for a search termpublic java.util.List<R> getRecords()
public T setRecords(java.util.List<R> records)
records - Set the records.public Template getTemplate()
public T setTemplate(Template template)
template - Set the templatepublic PageInfo getPageInfo()
public T setPageInfo(PageInfo pageInfo)
pageInfo - Set the page infopublic java.util.List<Navigation> getAvailableNavigation()
public T setAvailableNavigation(java.util.List<Navigation> availableNavigation)
availableNavigation - Set the available navigation.public java.util.List<Navigation> getSelectedNavigation()
public java.lang.String getSelectedNavigationJson()
public T setSelectedNavigation(java.util.List<Navigation> selectedNavigation)
selectedNavigation - Set the selected refinementspublic java.lang.String getRedirect()
Note, if a redirect is triggered the engine does not send back records.
public T setRedirect(java.lang.String redirect)
redirect - Set the redirectpublic java.lang.String getErrors()
public T setErrors(java.lang.String errors)
errors - Set errors.public long getTotalRecordCount()
public T setTotalRecordCount(long totalRecordCount)
totalRecordCount - Set the total record count.public java.util.List<Cluster> getClusters()
A cluster represents a set of documents that are considered closely
related based on a search term. This object will only be populated if you
use the
bridge.searchCluster
public T setClusters(java.util.List<Cluster> clusters)
clusters - Set the search clusters.public java.util.List<Metadata> getSiteParams()
public T setSiteParams(java.util.List<Metadata> siteParams)
siteParams - Set the site metadatapublic java.lang.String getOriginalQuery()
public T setOriginalQuery(java.lang.String originalQuery)
originalQuery - Sets the original query sent to the search servicepublic java.lang.String getCorrectedQuery()
public T setCorrectedQuery(java.lang.String correctedQuery)
correctedQuery - Sets the corrected query sent to the engine, if auto-correction is enabledpublic java.lang.String getQuery()
public T 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 T setRewrites(java.util.List<java.lang.String> rewrites)
rewrites - Set the rewrites that occurredpublic java.lang.String getBiasingProfile()
public T setBiasingProfile(java.lang.String biasingProfile)
Copyright © 2013–2015 GroupBy Inc.. All rights reserved.