Esempio n. 1
0
 /**
  * Gets a formatted facet based on the JSolrIndex configuration.
  *
  * @param string $facet
  *
  * @return string A formatted facet based on the JSolrIndex configuration.
  */
 protected function getFacet($facet)
 {
     switch (intval($this->params->get('component.casesensitivity'))) {
         case 1:
             return JString::strtolower($facet);
             break;
         case 2:
             return \JSolr\Helper::toCaseInsensitiveFacet($facet);
             break;
         default:
             return $facet;
             break;
     }
 }