I currently have the Search API module configured with an Apache Solr server instance, and have created an index which indexes a custom entity.
I'm looking to somehow retrieve the options displayed within a Facet I have created for a particular field, to as options for a select field on a custom form. So in other words, the function a particular Facet would use to query Apache Solr when it is populated.
Does anyone know how I can retrieve this data using the Search API?
I've tried playing around with the example given in this very useful post on querying using the Search API. So far I've had no such luck retrieving the indexed Facet values as the appear in their Facet blocks.
Any help would be appreciated thanks.