Class QueryRequest
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrRequest<QueryResponse>
-
- org.apache.solr.client.solrj.request.QueryRequest
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DirectJsonQueryRequest
,JsonQueryRequest
public class QueryRequest extends SolrRequest<QueryResponse>
- Since:
- solr 1.3
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.SolrRequest
SolrRequest.METHOD, SolrRequest.SolrClientContext, SolrRequest.SolrRequestType
-
-
Field Summary
-
Fields inherited from class org.apache.solr.client.solrj.SolrRequest
SUPPORTED_METHODS, useBinaryV2, usev2
-
-
Constructor Summary
Constructors Constructor Description QueryRequest()
QueryRequest(SolrParams q)
QueryRequest(SolrParams q, SolrRequest.METHOD method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryResponse
createResponse(SolrClient client)
Create a new SolrResponse to hold the response from the serverSolrParams
getParams()
String
getPath()
Use the params 'QT' parameter if it existsString
getRequestType()
This method defines the type of this Solr request.-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getQueryParams, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, setBasePath, setBasicAuthCredentials, setMethod, setPath, setQueryParams, setResponseParser, setStreamingResponseCallback, setUseBinaryV2, setUserPrincipal, setUseV2
-
-
-
-
Constructor Detail
-
QueryRequest
public QueryRequest()
-
QueryRequest
public QueryRequest(SolrParams q)
-
QueryRequest
public QueryRequest(SolrParams q, SolrRequest.METHOD method)
-
-
Method Detail
-
getPath
public String getPath()
Use the params 'QT' parameter if it exists- Overrides:
getPath
in classSolrRequest<QueryResponse>
-
createResponse
protected QueryResponse createResponse(SolrClient client)
Description copied from class:SolrRequest
Create a new SolrResponse to hold the response from the server- Specified by:
createResponse
in classSolrRequest<QueryResponse>
- Parameters:
client
- theSolrClient
the request will be sent to
-
getParams
public SolrParams getParams()
- Specified by:
getParams
in classSolrRequest<QueryResponse>
-
getRequestType
public String getRequestType()
Description copied from class:SolrRequest
This method defines the type of this Solr request.- Specified by:
getRequestType
in classSolrRequest<QueryResponse>
-
-