Class QueryRequest
java.lang.Object
org.apache.solr.client.solrj.SolrRequest<QueryResponse>
org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest<QueryResponse>
org.apache.solr.client.solrj.request.QueryRequest
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DirectJsonQueryRequest,JsonQueryRequest
For use with Solr's
SearchHandler, generally at "/select". For other handlers, try GenericSolrRequest.- Since:
- solr 1.3
- See Also:
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected QueryResponsecreateResponse(NamedList<Object> namedList) Create a new SolrResponse to hold the response from the server.The parameters for this request; never null.getPath()Use the params 'QT' parameter if it existsMethods inherited from class org.apache.solr.client.solrj.request.CollectionRequiringSolrRequest
requiresCollectionMethods inherited from class org.apache.solr.client.solrj.SolrRequest
addHeader, addHeaders, getApiVersion, getBasicAuthPassword, getBasicAuthUser, getCollection, getContentStreams, getContentWriter, getHeaders, getMethod, getPreferredNodes, getQueryParams, getRequestType, getResponseParser, getStreamingResponseCallback, getUserPrincipal, process, process, processWithBaseUrl, setBasicAuthCredentials, setMethod, setPath, setPreferredNodes, setQueryParams, setRequestType, setResponseParser, setStreamingResponseCallback, setUserPrincipal
-
Constructor Details
-
QueryRequest
public QueryRequest() -
QueryRequest
-
QueryRequest
-
-
Method Details
-
getPath
Use the params 'QT' parameter if it exists- Overrides:
getPathin classSolrRequest<QueryResponse>
-
createResponse
Description copied from class:SolrRequestCreate a new SolrResponse to hold the response from the server. If the response extendsSolrResponse, then there's no need to use the arguments, asSolrResponse.setResponse(NamedList)will be called right after this method.- Specified by:
createResponsein classSolrRequest<QueryResponse>- Parameters:
namedList- fromSolrClient.request(SolrRequest, String).
-
getParams
Description copied from class:SolrRequestThe parameters for this request; never null. The runtime type may be mutable but modifications may not affect thisSolrRequestinstance, as it may return a new instance here every time. If the subclass specifies the response type asModifiableSolrParams, then one can expect it to change this request. If the subclass has a setter then one can expect this method to return the value set.- Specified by:
getParamsin classSolrRequest<QueryResponse>
-