org.apache.solr.client.solrj.response
Class QueryResponse

java.lang.Object
  extended by org.apache.solr.client.solrj.SolrResponse
      extended by org.apache.solr.client.solrj.response.SolrResponseBase
          extended by org.apache.solr.client.solrj.response.QueryResponse
All Implemented Interfaces:
Serializable

public class QueryResponse
extends SolrResponseBase

Since:
solr 1.3
Version:
$Id: QueryResponse.java 687102 2008-08-19 17:29:51Z shalin $
See Also:
Serialized Form

Constructor Summary
QueryResponse()
           
QueryResponse(org.apache.solr.common.util.NamedList<Object> res, SolrServer solrServer)
          Utility constructor to set the solrServer and namedList
 
Method Summary
<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()
           
 Map<String,Integer> getFacetQuery()
           
 org.apache.solr.common.util.NamedList<Object> getHeader()
           
 Map<String,Map<String,List<String>>> getHighlighting()
           
 List<FacetField> getLimitingFacets()
           
 org.apache.solr.common.SolrDocumentList getResults()
           
 org.apache.solr.common.util.NamedList<ArrayList> getSortValues()
           
 SpellCheckResponse getSpellCheckResponse()
           
 void removeFacets()
          Remove the field facet info
 void setResponse(org.apache.solr.common.util.NamedList<Object> res)
           
 
Methods inherited from class org.apache.solr.client.solrj.response.SolrResponseBase
getElapsedTime, getQTime, getRequestUrl, getResponse, getResponseHeader, getStatus, setElapsedTime, setRequestUrl, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryResponse

public QueryResponse()

QueryResponse

public QueryResponse(org.apache.solr.common.util.NamedList<Object> res,
                     SolrServer solrServer)
Utility constructor to set the solrServer and namedList

Method Detail

setResponse

public void setResponse(org.apache.solr.common.util.NamedList<Object> res)
Overrides:
setResponse in class SolrResponseBase

removeFacets

public void removeFacets()
Remove the field facet info


getHeader

public org.apache.solr.common.util.NamedList<Object> getHeader()

getResults

public org.apache.solr.common.SolrDocumentList getResults()

getSortValues

public org.apache.solr.common.util.NamedList<ArrayList> getSortValues()

getDebugMap

public Map<String,Object> getDebugMap()

getExplainMap

public Map<String,String> getExplainMap()

getFacetQuery

public Map<String,Integer> getFacetQuery()

getHighlighting

public Map<String,Map<String,List<String>>> getHighlighting()

getSpellCheckResponse

public SpellCheckResponse getSpellCheckResponse()

getFacetFields

public List<FacetField> getFacetFields()

getFacetDates

public List<FacetField> getFacetDates()

getFacetField

public FacetField getFacetField(String name)
get

Parameters:
name - the name of the
Returns:
the FacetField by name or null if it does not exist

getFacetDate

public FacetField getFacetDate(String name)

getLimitingFacets

public List<FacetField> getLimitingFacets()

getBeans

public <T> List<T> getBeans(Class<T> type)


Copyright © 2008 Apache Software Foundation. All Rights Reserved.