API Docs for: 0.1.0.ee3e9e64
Show:

SolrRequestHandler Class

Module: solr

An abstract representation of a Solr request handler, including its type, path and HTTP method.

Item Index

Methods

Properties

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 SolrAdapter

    the adapter invoking this method

  • the DS.Store

    store related to the type and data

  • type subclass of DS.Model

    the type corresponding to the operation

  • operation String

    the operation e.g. 'find', 'updateRecord', etc.

  • data Object

    the 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

method

String

The HTTP method (verb) to use in the request.

Default: 'GET'

path

String

The path to route the request to. Typical examples include handler paths like /search, /select, /get, and /update.

type

SolrHandlerType

The type of request.