public function getFacetsForFields($fields, $number=10) {
		if (!is_array($fields)) {
			$fields = array($fields);
		}

		return $this->query('*', 0, 1, array('facet' => 'true', 'facet.field' => $fields, 'facet.limit' => 10, 'facet.mincount' => 1));
	}
public function getFacetsForFields($fields, $number=10) {
		if (!is_array($fields)) {
			$fields = array($fields);
		}

		return $this->query('*', 0, 1, array('facet' => 'true', 'facet.field' => $fields, 'facet.limit' => 10, 'facet.mincount' => 1));
	}
public function getFacetsForFields ( $ fields , $ number = 10 ) { if ( ! is_array ( $ fields ) ) { $ fields = array ( $ fields ) ; } return $ this -> query ( '*' , 0 , 1 , array ( 'facet' => 'true' , 'facet.field' => $ fields , 'facet.limit' => 10 , 'facet.mincount' => 1 ) ) ; }
Method used to return details about the facets stored for content, if any, for an empty query.

Note - if you're wanting to perform actual queries using faceting information, please
manually add the faceting information into the $params array during the query! This
method is purely for convenience!

@param $fields
An array of fields to get facet information for
Method used to return details about the facets stored for content if any for an empty query .