public class QueryResponse extends SolrResponseBase
MapWriter.EntryWriter
Constructor and Description |
---|
QueryResponse() |
QueryResponse(NamedList<Object> res,
SolrClient solrClient)
Utility constructor to set the solrServer and namedList
|
QueryResponse(SolrClient solrClient) |
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString, writeMap
deserialize, getException, serializable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
public QueryResponse()
public QueryResponse(NamedList<Object> res, SolrClient solrClient)
public QueryResponse(SolrClient solrClient)
public void setResponse(NamedList<Object> res)
setResponse
in class SolrResponseBase
protected List<PivotField> readPivots(List<NamedList> list)
public void removeFacets()
public SolrDocumentList getResults()
public Map<String,SolrDocumentList> getExpandedResults()
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 ClusteringResponse getClusteringResponse()
public NestableJsonFacet getJsonFacetingResponse()
public SuggesterResponse getSuggesterResponse()
public TermsResponse getTermsResponse()
public NamedList<SolrDocumentList> getMoreLikeThis()
public List<FacetField> getFacetFields()
getLimitingFacets()
public List<FacetField> getFacetDates()
public List<RangeFacet> getFacetRanges()
public NamedList<List<PivotField>> getFacetPivot()
public List<IntervalFacet> getIntervalFacets()
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()
public String getNextCursorMark()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.