Solr Facets
solrFacets
Autocomplete options from a Solr JSON facet. Native maarg port of the OMS AutoCompleteSolrFacet screen: the facet definition named facetToSelect is taken from the facet block of jsonQuery when the caller predefines it there, otherwise from the merged component solr/{solrVersion}/Facets.json files (keyed coreName → docType → facet name, merged and cached like schema.json). An edismax fq is built from searchfield × term tokens and the facet is executed with rows=0 via co.hotwax.solr.SolrQuery. The response is the same [{id, label, value}] list the OMS endpoint returned.
Authorizations
AuthorizationstringRequired
Query parameters
facetToSelectstringOptional
coreNamestringOptional
collectionNamestringOptional
docTypestringOptional
searchfieldstringOptional
jsonQuerystringOptional
noConditionFindstringOptional
limitstringOptional
qstringOptional
termstringOptional
offsetstringOptional
Responses
200
Success
application/json
responsearrayOptional
401
Authentication required
403
Access Forbidden (no authz)
429
Too Many Requests (tarpit)
500
General Error
get/solrFacets
GET /rest/s1/admin/solrFacets HTTP/1.1
Host: dev-maarg.hotwax.io
Authorization: Basic username:password
Accept: */*
{
"response": []
}Last updated
Was this helpful?