public function updateElasticMappings($mappings)
    {
        $mappings['BoostTerms'] = ['type' => 'keyword'];

        $mappings['Categories'] = ['type' => 'keyword'];
        $mappings['Keywords'] = ['type' => 'text'];
        $mappings['Tags'] = ['type' => 'keyword'];

        if ($this->owner instanceof \SiteTree) {
            // store the SS_URL for consistency
            $mappings['SS_URL'] = ['type' => 'text'];
        }
    }
public function updateElasticMappings($mappings)
    {
        $mappings['BoostTerms'] = ['type' => 'keyword'];

        $mappings['Categories'] = ['type' => 'keyword'];
        $mappings['Keywords'] = ['type' => 'text'];
        $mappings['Tags'] = ['type' => 'keyword'];

        if ($this->owner instanceof \SiteTree) {
            // store the SS_URL for consistency
            $mappings['SS_URL'] = ['type' => 'text'];
        }
    }
public function updateElasticMappings ( $ mappings ) { $ mappings [ 'BoostTerms' ] = [ 'type' => 'keyword' ] ; $ mappings [ 'Categories' ] = [ 'type' => 'keyword' ] ; $ mappings [ 'Keywords' ] = [ 'type' => 'text' ] ; $ mappings [ 'Tags' ] = [ 'type' => 'keyword' ] ; if ( $ this -> owner instanceof \ SiteTree ) { // store the SS_URL for consistency $ mappings [ 'SS_URL' ] = [ 'type' => 'text' ] ; } }
Sets appropriate mappings for fields that need to be subsequently faceted upon
@param type $mappings
Sets appropriate mappings for fields that need to be subsequently faceted upon