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

Search

search

execute SolrQuery

post

Execute a Solr query using the JSON Request API and return the raw response.

        Request body (Solr JSON Request API format):
        {
          "query":  "docType:ORDER",
          "filter": ["orderStatusId:ORDER_COMPLETED"],
          "fields": "orderId,orderDate",
          "params": { "rows": 10, "sort": "orderDate desc", "defType": "edismax" },
          "collection": "enterpriseSearch"
        }

        query      — Solr query string, required
        filter     — fq filter(s), String or List of Strings
        fields     — comma-separated fl field list
        params     — extra URL parameters (rows, start, sort, defType, etc.)
        collection — collection to query (default: solr.default.collection)
Authorizations
AuthorizationstringRequired
Body
querystringRequired

Solr query string, e.g. "docType:ORDER AND orderStatusId:ORDER_APPROVED"

filterarrayOptional

One or more filter queries (fq). String or List of Strings.

facetobjectOptional

One or more facets.

fieldsstringOptional

Comma-separated field list (fl), e.g. "orderId,orderDate,status".

paramsobjectOptional

Extra Solr URL parameters: rows, start, sort, defType, etc.

collectionstringOptional

Collection to query. Defaults to solr.default.collection.

Responses
200

Success

application/json
responseobjectOptional

Raw Solr JSON response — contains response.docs, response.numFound, etc.

post/search/query
POST /rest/s1/admin/search/query HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 87

{
  "query": "text",
  "filter": [],
  "facet": {},
  "fields": "text",
  "params": {},
  "collection": "text"
}
{
  "response": {}
}

Last updated

Was this helpful?