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
-
-
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 exists-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
getBasePath, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, 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>
-
-