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.SolrRequest
SolrRequest.ApiVersion, 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 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.CollectionRequiringSolrRequest
requiresCollection
-
Methods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, 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
-
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:
getPathin classSolrRequest<QueryResponse>
-
createResponse
protected QueryResponse createResponse(SolrClient client)
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server- Specified by:
createResponsein classSolrRequest<QueryResponse>- Parameters:
client- theSolrClientthe request will be sent to
-
getParams
public SolrParams getParams()
- Specified by:
getParamsin classSolrRequest<QueryResponse>
-
getRequestType
public String getRequestType()
Description copied from class:SolrRequestThis method defines the type of this Solr request.- Specified by:
getRequestTypein classSolrRequest<QueryResponse>
-
-