Class QueryResponse
java.lang.Object
org.apache.solr.client.solrj.SolrResponse
org.apache.solr.client.solrj.response.SolrResponseBase
org.apache.solr.client.solrj.response.QueryResponse
- All Implemented Interfaces:
Serializable,MapSerializable,MapWriter,NavigableObject,org.noggit.JSONWriter.Writable
- Since:
- solr 1.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> List<T> getFacetDate(String name) getFacetField(String name) getSee also:getLimitingFacets()Returns theGroupResponsecontaining the group commands.protected List<PivotField> readPivots(List<NamedList> list) voidRemove the field facet infovoidsetResponse(NamedList<Object> res) Methods inherited from class org.apache.solr.client.solrj.response.SolrResponseBase
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString, writeMapMethods inherited from class org.apache.solr.client.solrj.SolrResponse
getExceptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr, _size
-
Constructor Details
-
QueryResponse
public QueryResponse() -
QueryResponse
-
-
Method Details
-
setResponse
- Overrides:
setResponsein classSolrResponseBase
-
readPivots
-
removeFacets
public void removeFacets()Remove the field facet info -
getHeader
-
getResults
-
getSortValues
-
getDebugMap
-
getExplainMap
-
getFacetQuery
-
getExpandedResults
- Returns:
- map with each group value as key and the expanded documents that belong to the group as value. There is no guarantee on the order of the keys obtained via an iterator.
-
getGroupResponse
Returns theGroupResponsecontaining the group commands. A group command can be the result of one of the following parameters:- group.field
- group.func
- group.query
- Returns:
- the
GroupResponsecontaining the group commands
-
getHighlighting
-
getSpellCheckResponse
-
getClusteringResponse
-
getJsonFacetingResponse
-
getSuggesterResponse
-
getTermsResponse
-
getMoreLikeThis
-
getTasksInfo
-
getCancellationInfo
-
getTaskStatusCheckInfo
-
getFacetFields
See also:getLimitingFacets() -
getFacetDates
-
getFacetRanges
-
getFacetPivot
-
getIntervalFacets
-
getFacetField
get- Parameters:
name- the name of the- Returns:
- the FacetField by name or null if it does not exist
-
getFacetDate
-
getLimitingFacets
- Returns:
- a list of FacetFields where the count is less than the #getResults()
SolrDocumentList.getNumFound()If you want all results exactly as returned by solr, use:
getFacetFields()
-
getBeans
-
getFieldStatsInfo
-
getNextCursorMark
-