Extracting meaningful data from the XML response to the /search/facet/cube REST API

Technote (FAQ)

Question

The documentation for search/facet/cube, which is located at ES_INSTALL_ROOT/docs/api/rest/search/search_facet_cube/api.html, contains a link to an example of the XML response to the API (application/xml). The sample does not explain the structure of the XML file. How do I determine relevant data in the XML response?

Answer

The following sample API call, which applies to content analytic collections that include any type of data source, returns an XML response: