For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Run Solr Query

runSolrQuery

run SolrQuery

post

Run a Solr query given as a Solr JSON Request API object and return the raw response sections. Uses the native maarg Solr integration (co.hotwax.solr.SolrQuery) instead of the OMS solr-query REST endpoint; the request/response contract is unchanged.

        json — Solr JSON Request API object:
        {
          "query":  "*:*",
          "filter": ["docType:ORDER"],          // String or List
          "fields": "orderId,orderDate",        // optional fl
          "params": { "rows": 10, "start": 0, "sort": "orderDate desc",
                      "group": true, "group.field": "orderId" },   // extra URL params
          "collection": "enterpriseSearch"      // optional, defaults to solr.default.collection
        }
Authorizations
AuthorizationstringRequired
Body
jsonobjectOptional
Responses
200

Success

application/json
responseHeaderobjectOptional
responseobjectOptional
facetsobjectOptional
groupedobjectOptional
post/runSolrQuery
POST /rest/s1/admin/runSolrQuery HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 11

{
  "json": {}
}
{
  "responseHeader": {},
  "response": {},
  "facets": {},
  "grouped": {}
}

Last updated

Was this helpful?