> For the complete documentation index, see [llms.txt](https://docs.hotwax.co/documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hotwax.co/documents/integrate-with-hotwax/components/available-to-promise/solr-facets.md).

# Solr Facets

solrFacets

## autoComplete SolrFacet

> Autocomplete options from a Solr JSON facet. Native maarg port of the OMS\
> &#x20;           AutoCompleteSolrFacet screen: the facet definition named facetToSelect is taken\
> &#x20;           from the facet block of jsonQuery when the caller predefines it there, otherwise\
> &#x20;           from the merged component solr/{solrVersion}/Facets.json files (keyed\
> &#x20;           coreName → docType → facet name, merged and cached like schema.json). An edismax\
> &#x20;           fq is built from searchfield × term tokens and the facet is executed with rows=0\
> &#x20;           via co.hotwax.solr.SolrQuery. The response is the same \[{id, label, value}] list\
> &#x20;           the OMS endpoint returned.

```json
{"openapi":"3.1.1","info":{"title":"Commerce Available to Promise REST API","version":"4.0.0"},"tags":[{"name":"solrFacets","description":"solrFacets"}],"servers":[{"url":"https://dev-maarg.hotwax.io/rest/s1/available-to-promise"}],"security":[{"basicAuth":[]},{"api_key":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"},"api_key":{"type":"apiKey","name":"api_key","in":"header","description":"HTTP Header api_key"}},"schemas":{"co.hotwax.search.SearchServices.autoCompleteSolrFacet.Out":{"type":"object","properties":{"response":{"type":"array"}}}}},"paths":{"/solrFacets":{"get":{"tags":["solrFacets"],"summary":"autoComplete SolrFacet","description":"Autocomplete options from a Solr JSON facet. Native maarg port of the OMS\n            AutoCompleteSolrFacet screen: the facet definition named facetToSelect is taken\n            from the facet block of jsonQuery when the caller predefines it there, otherwise\n            from the merged component solr/{solrVersion}/Facets.json files (keyed\n            coreName → docType → facet name, merged and cached like schema.json). An edismax\n            fq is built from searchfield × term tokens and the facet is executed with rows=0\n            via co.hotwax.solr.SolrQuery. The response is the same [{id, label, value}] list\n            the OMS endpoint returned.","parameters":[{"schema":{"type":"string","format":""},"name":"facetToSelect","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"coreName","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"collectionName","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"docType","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"searchfield","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"jsonQuery","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"noConditionFind","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"limit","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"q","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"term","in":"query","required":false,"description":null},{"schema":{"type":"string","format":""},"name":"offset","in":"query","required":false,"description":null}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/co.hotwax.search.SearchServices.autoCompleteSolrFacet.Out"}}}},"401":{"description":"Authentication required"},"403":{"description":"Access Forbidden (no authz)"},"429":{"description":"Too Many Requests (tarpit)"},"500":{"description":"General Error"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hotwax.co/documents/integrate-with-hotwax/components/available-to-promise/solr-facets.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
