protected function parseTaxonomies($contentType, $taxonomies)
    {
        foreach ((array) $taxonomies as $taxonomy) {
            $taxonomyConfig = $this->config->get('taxonomy/' . $taxonomy);
            if (isset($taxonomyConfig['searchweight'])) {
                $weight = $taxonomyConfig['searchweight'];
            } elseif (isset($taxonomyConfig['behaves_like']) && $taxonomyConfig['behaves_like'] === 'tags') {
                $weight = 75;
            } else {
                $weight = 50;
            }
            if (!$this->isInvisible($contentType)) {
                $this->searchableTypes[$contentType][$taxonomy] = ['weight' => $weight];
            } else {
                $this->invisibleTypes[$contentType][$taxonomy] = ['weight' => $weight];
            }
            $this->joins[$contentType][] = $taxonomy;
        }
    }
protected function parseTaxonomies($contentType, $taxonomies)
    {
        foreach ((array) $taxonomies as $taxonomy) {
            $taxonomyConfig = $this->config->get('taxonomy/' . $taxonomy);
            if (isset($taxonomyConfig['searchweight'])) {
                $weight = $taxonomyConfig['searchweight'];
            } elseif (isset($taxonomyConfig['behaves_like']) && $taxonomyConfig['behaves_like'] === 'tags') {
                $weight = 75;
            } else {
                $weight = 50;
            }
            if (!$this->isInvisible($contentType)) {
                $this->searchableTypes[$contentType][$taxonomy] = ['weight' => $weight];
            } else {
                $this->invisibleTypes[$contentType][$taxonomy] = ['weight' => $weight];
            }
            $this->joins[$contentType][] = $taxonomy;
        }
    }
protected function parseTaxonomies ( $ contentType , $ taxonomies ) { foreach ( ( array ) $ taxonomies as $ taxonomy ) { $ taxonomyConfig = $ this -> config -> get ( 'taxonomy/' . $ taxonomy ) ; if ( isset ( $ taxonomyConfig [ 'searchweight' ] ) ) { $ weight = $ taxonomyConfig [ 'searchweight' ] ; } elseif ( isset ( $ taxonomyConfig [ 'behaves_like' ] ) && $ taxonomyConfig [ 'behaves_like' ] === 'tags' ) { $ weight = 75 ; } else { $ weight = 50 ; } if ( ! $ this -> isInvisible ( $ contentType ) ) { $ this -> searchableTypes [ $ contentType ] [ $ taxonomy ] = [ 'weight' => $ weight ] ; } else { $ this -> invisibleTypes [ $ contentType ] [ $ taxonomy ] = [ 'weight' => $ weight ] ; } $ this -> joins [ $ contentType ] [ ] = $ taxonomy ; } }
Iterates the taxonomies for a given ContentType, then assigns a
weighting based on type.

@param string $contentType
@param array  $taxonomies
Iterates the taxonomies for a given ContentType then assigns a weighting based on type .