private function getFieldAnalyzers()
    {
        $analyzers = [];

        if ($this->isSearchable() || $this->isUsedForSortBy()) {
            // Default search analyzer.
            $analyzers = [$this->getDefaultSearchAnalyzer()];

            if ($this->isSearchable() && $this->getSearchWeight() > 1) {
                $analyzers[] = self::ANALYZER_WHITESPACE;
                $analyzers[] = self::ANALYZER_SHINGLE;
            }
        }

        if ($this->isFilterable() || empty($analyzers)) {
            // For filterable fields or fields without analyzer : append the untouched analyzer.
            $analyzers[] = self::ANALYZER_UNTOUCHED;
        }

        if ($this->isUsedForSortBy()) {
            $analyzers[] = self::ANALYZER_SORTABLE;
        }

        return $analyzers;
    }
private function getFieldAnalyzers()
    {
        $analyzers = [];

        if ($this->isSearchable() || $this->isUsedForSortBy()) {
            // Default search analyzer.
            $analyzers = [$this->getDefaultSearchAnalyzer()];

            if ($this->isSearchable() && $this->getSearchWeight() > 1) {
                $analyzers[] = self::ANALYZER_WHITESPACE;
                $analyzers[] = self::ANALYZER_SHINGLE;
            }
        }

        if ($this->isFilterable() || empty($analyzers)) {
            // For filterable fields or fields without analyzer : append the untouched analyzer.
            $analyzers[] = self::ANALYZER_UNTOUCHED;
        }

        if ($this->isUsedForSortBy()) {
            $analyzers[] = self::ANALYZER_SORTABLE;
        }

        return $analyzers;
    }
private function getFieldAnalyzers ( ) { $ analyzers = [ ] ; if ( $ this -> isSearchable ( ) || $ this -> isUsedForSortBy ( ) ) { // Default search analyzer. $ analyzers = [ $ this -> getDefaultSearchAnalyzer ( ) ] ; if ( $ this -> isSearchable ( ) && $ this -> getSearchWeight ( ) > 1 ) { $ analyzers [ ] = self :: ANALYZER_WHITESPACE ; $ analyzers [ ] = self :: ANALYZER_SHINGLE ; } } if ( $ this -> isFilterable ( ) || empty ( $ analyzers ) ) { // For filterable fields or fields without analyzer : append the untouched analyzer. $ analyzers [ ] = self :: ANALYZER_UNTOUCHED ; } if ( $ this -> isUsedForSortBy ( ) ) { $ analyzers [ ] = self :: ANALYZER_SORTABLE ; } return $ analyzers ; }
Retrieve analyzers used with the current field depending of the field configuration.

@return array
Retrieve analyzers used with the current field depending of the field configuration .