SolrRequestHandler Class
An abstract representation of a Solr request handler, including its type, path and HTTP method.
Methods
buildPayload
-
adapter
-
the
-
type
-
operation
-
data
Prepares the data and optinally adjusts the path properties to send to Solr as a querystring or in an HTTP POST request body.
This method mutates the state of the instance it is invoked on and has no return value.
Parameters:
-
adapter
SolrAdapterthe adapter invoking this method
-
the
DS.Storestore related to the type and data
-
type
subclass of DS.Modelthe type corresponding to the operation
-
operation
Stringthe operation e.g. 'find', 'updateRecord', etc.
-
data
Objectthe ID(s), query or snapshot payload to prepare.
Properties
data
Object
The data payload to send in the request, as a query string or as a JSON request body.
Default: null
path
String
The path to route the request to. Typical
examples include handler paths like /search
,
/select
, /get
, and /update
.