11. A computer-implemented method for displaying results of a search query, the method comprising: receiving a query; obtaining documents that satisfy the query using a search index, the search index storing information relating to a plurality of documents, the information including metadata describing a hierarchical relationship among the plurality of documents; constructing, by operation of one or more computer processors, a facet hierarchy based on the metadata describing the hierarchical relationship associated with the documents that satisfy the query; determining whether a pre-defined cube structure corresponds to the facet hierarchy; and responsive to the pre-defined cube structure not corresponding to the facet hierarchy, modifying the pre-defined cube structure to correspond with the facet hierarchy and outputting for display a multi-dimensional search interface based on the modified cube structure.
11. A computer-implemented method for displaying results of a search query, the method comprising: receiving a query; obtaining documents that satisfy the query using a search index, the search index storing information relating to a plurality of documents, the information including metadata describing a hierarchical relationship among the plurality of documents; constructing, by operation of one or more computer processors, a facet hierarchy based on the metadata describing the hierarchical relationship associated with the documents that satisfy the query; determining whether a pre-defined cube structure corresponds to the facet hierarchy; and responsive to the pre-defined cube structure not corresponding to the facet hierarchy, modifying the pre-defined cube structure to correspond with the facet hierarchy and outputting for display a multi-dimensional search interface based on the modified cube structure. 12. The method of claim 11 , further comprising: responsive to the pre-defined cube structure corresponding to the facet hierarchy, outputting for display the multi-dimensional search interface based on the pre-defined cube structure.