You are here

function Solr_Base_Query::add_field_aliases in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 Solr_Base_Query.php \Solr_Base_Query::add_field_aliases()
  2. 6.2 Solr_Base_Query.php \Solr_Base_Query::add_field_aliases()

Handle aliases for field to make nicer URLs

Parameters

$field_map: An array keyed with real Solr index field names, with value being the alias.

File

./Solr_Base_Query.php, line 227

Class

Solr_Base_Query

Code

function add_field_aliases($field_map) {
  $this->field_map = array_merge($this->field_map, $field_map);

  // We have to re-parse the filters.
  $this
    ->parse_filters();
}