Parameters Mapping

Right now only some standard query parameters have JSON equivalents. Unmapped parameters can be passed through request parameters or params block as shown above.

Table 1. Standard query parameters to JSON field

Query parameters

JSON field equivalent

q

query

fq

filter

offset

start

limit

rows

sort

sort

json.facet

facet

Error Detection

Because we didn’t pollute the root body of the JSON request with the normal Solr request parameters (they are all contained in the params block), we now have the ability to validate requests and return an error for unknown JSON keys.