Class QueryRequest
- java.lang.Object
- 
- org.apache.solr.client.solrj.SolrRequest<T>
- 
- org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest<QueryResponse>
- 
- org.apache.solr.client.solrj.request.QueryRequest
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 - Direct Known Subclasses:
- DirectJsonQueryRequest,- JsonQueryRequest
 
 public class QueryRequest extends CollectionRequiringSolrRequest<QueryResponse> - Since:
- solr 1.3
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequestSolrRequest.ApiVersion, SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.solr.client.solrj.SolrRequestSUPPORTED_METHODS, useBinaryV2, usev2
 
- 
 - 
Constructor SummaryConstructors Constructor Description QueryRequest()QueryRequest(SolrParams q)QueryRequest(SolrParams q, SolrRequest.METHOD method)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryResponsecreateResponse(SolrClient client)Create a new SolrResponse to hold the response from the serverSolrParamsgetParams()StringgetPath()Use the params 'QT' parameter if it existsStringgetRequestType()This method defines the type of this Solr request.- 
Methods inherited from class org.apache.solr.client.solrj.request.CollectionRequiringSolrRequestrequiresCollection
 - 
Methods inherited from class org.apache.solr.client.solrj.SolrRequestaddHeader, addHeaders, getApiVersion, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPreferredNodes, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
 
- 
 
- 
- 
- 
Constructor Detail- 
QueryRequestpublic QueryRequest() 
 - 
QueryRequestpublic QueryRequest(SolrParams q) 
 - 
QueryRequestpublic QueryRequest(SolrParams q, SolrRequest.METHOD method) 
 
- 
 - 
Method Detail- 
getPathpublic String getPath() Use the params 'QT' parameter if it exists- Overrides:
- getPathin class- SolrRequest<QueryResponse>
 
 - 
createResponseprotected QueryResponse createResponse(SolrClient client) Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server- Specified by:
- createResponsein class- SolrRequest<QueryResponse>
- Parameters:
- client- the- SolrClientthe request will be sent to
 
 - 
getParamspublic SolrParams getParams() - Specified by:
- getParamsin class- SolrRequest<QueryResponse>
 
 - 
getRequestTypepublic String getRequestType() Description copied from class:SolrRequestThis method defines the type of this Solr request.- Specified by:
- getRequestTypein class- SolrRequest<QueryResponse>
 
 
- 
 
-