示例#1
0
文件: Facet.php 项目: nxpthx/ext-solr
 /**
  * Gets the facet's options
  *
  * @return array An array with facet options.
  */
 public function getOptionsRaw()
 {
     $facetOptions = array();
     switch ($this->type) {
         case self::TYPE_FIELD:
             $facetOptions = $this->search->getFacetFieldOptions($this->field);
             break;
         case self::TYPE_QUERY:
             $facetOptions = $this->search->getFacetQueryOptions($this->field);
             break;
         case self::TYPE_RANGE:
             $facetOptions = $this->search->getFacetRangeOptions($this->field);
             break;
     }
     return $facetOptions;
 }