public class QueryResponse extends SolrResponseBase
Constructor and Description |
---|
QueryResponse() |
QueryResponse(NamedList<Object> res,
SolrServer solrServer)
Utility constructor to set the solrServer and namedList
|
Modifier and Type | Method and Description |
---|---|
<T> List<T> |
getBeans(Class<T> type) |
Map<String,Object> |
getDebugMap() |
Map<String,String> |
getExplainMap() |
FacetField |
getFacetDate(String name) |
List<FacetField> |
getFacetDates() |
FacetField |
getFacetField(String name)
get
|
List<FacetField> |
getFacetFields()
See also:
getLimitingFacets() |
Map<String,Integer> |
getFacetQuery() |
List<RangeFacet> |
getFacetRanges() |
Map<String,FieldStatsInfo> |
getFieldStatsInfo() |
GroupResponse |
getGroupResponse()
Returns the
GroupResponse containing the group commands. |
NamedList<Object> |
getHeader() |
Map<String,Map<String,List<String>>> |
getHighlighting() |
List<FacetField> |
getLimitingFacets() |
SolrDocumentList |
getResults() |
NamedList<ArrayList> |
getSortValues() |
SpellCheckResponse |
getSpellCheckResponse() |
TermsResponse |
getTermsResponse() |
void |
removeFacets()
Remove the field facet info
|
void |
setResponse(NamedList<Object> res) |
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString
public QueryResponse()
public QueryResponse(NamedList<Object> res, SolrServer solrServer)
public void setResponse(NamedList<Object> res)
setResponse
in class SolrResponseBase
public void removeFacets()
public SolrDocumentList getResults()
public GroupResponse getGroupResponse()
GroupResponse
containing the group commands.
A group command can be the result of one of the following parameters:
GroupResponse
containing the group commandspublic SpellCheckResponse getSpellCheckResponse()
public TermsResponse getTermsResponse()
public List<FacetField> getFacetFields()
getLimitingFacets()
public List<FacetField> getFacetDates()
public List<RangeFacet> getFacetRanges()
public FacetField getFacetField(String name)
name
- the name of thepublic FacetField getFacetDate(String name)
public List<FacetField> getLimitingFacets()
SolrDocumentList.getNumFound()
If you want all results exactly as returned by solr, use:
getFacetFields()
public Map<String,FieldStatsInfo> getFieldStatsInfo()