This method is used to check if a trigram phrase search is enabled or not

plugin.tx_solr.search.query.trigramPhrase = 1

@param bool $defaultIfEmpty
@return bool
199891
public function getTrigramPhraseSearchIsEnabled(bool $defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.query.trigramPhrase', $defaultIfEmpty);
        return $this->getBool($result);
    }
974822
public static function GetDefaultQuery($iLanguageId, $sFilterString = false)
    {
        $sDefaultQuery = 'SELECT `pkg_shop_primary_navi`.*
                          FROM `pkg_shop_primary_navi`
                         WHERE [{sFilterConditions}]
                      ORDER BY `pkg_shop_primary_navi`.`position` ASC';
        $sActivePrimaryNavigationQueryRestriction = '';
        if (!TGlobal::IsCMSMode()) {
            $sActivePrimaryNavigationQueryRestriction = TdbPkgShopPrimaryNaviList::GetActivePrimaryNavigationQueryRestriction();
        }
        if (strlen($sActivePrimaryNavigationQueryRestriction) > 0) {
            if (false === $sFilterString) {
                $sFilterString = " $sActivePrimaryNavigationQueryRestriction ";
            } else {
                $sFilterString = ' ( '.$sFilterString.' ) AND ('.$sActivePrimaryNavigationQueryRestriction.')';
            }
        } else {
            if (false === $sFilterString) {
                $sFilterString = ' 1 = 1 ';
            }
        }
        $sDefaultQuery = str_replace('[{sFilterConditions}]', $sFilterString, $sDefaultQuery);

        return $sDefaultQuery;
    }
1330093
public function getDico($createIfEmpty = true)
    {
        if (!$this->dico && $createIfEmpty) {
            $this->setDico(new Dico());
        }
        return $this->dico;
    }
82430
public function getLoggingIndexingPageIndexed($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.logging.indexing.pageIndexed', $defaultIfEmpty);
        return $this->getBool($result);
    }
999049
public function getSolrPort($defaultIfEmpty = 8983, $scope = 'read')
    {
        $scopePath = 'plugin.tx_solr.solr.' . $scope . '.port';
        $fallbackPath = 'plugin.tx_solr.solr.port';

        return (int)$this->getValueByPathWithFallbackOrDefaultValueAndApplyStdWrap($scopePath, $fallbackPath, $defaultIfEmpty);
    }
1323857
public static function answerIsYes(bool $default = null): bool
    {
        $mark = ' [yes|no]: ';

        if ($default !== null) {
            $defMsg = $default ? 'yes' : 'no';
            $mark   = \sprintf(' [yes|no](default <cyan>%s</cyan>): ', $defMsg);
        }

        if ($answer = Console::readFirst($mark)) {
            $answer = \strtolower($answer);

            if ($answer === 'y') {
                return true;
            }

            if ($answer === 'n') {
                return false;
            }
        } elseif ($default !== null) {
            return $default;
        }

        print 'Please try again';
        return self::answerIsYes();
    }
803530
public function getSearchElevationForceElevation($defaultIfEmpty = true)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.elevation.forceElevation', $defaultIfEmpty);
        return $this->getBool($result);
    }
301135
public function getLoggingQuerySearchWords($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.logging.query.searchWords', $defaultIfEmpty);
        return $this->getBool($result);
    }
633221
function getDefaultSearchOptionText($level = null, $config = null)
    {
        if (is_null($config)) {
            $config = $this->getConfig();
        }
        $text = trim($config->search->defaultText);
        if (empty($text)) {
            $text = '-please select-';
        }
        $text = sprintf($text, ucfirst($level));
        return $text;
    }
891487
public function isNullableRequired($defaultValue = self::NULLABLE_DEFAULT)
    {
        $isNullable = !$this->isNotNull();

        return $isNullable === $defaultValue ? ($this->isAlwaysNullable() ? true : false) : true;
    }
1094766
public function getLoggingQueryQueryString($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.logging.query.queryString', $defaultIfEmpty);
        return $this->getBool($result);
    }
1280534
public function getLoggingQueryRawGet($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.logging.query.rawGet', $defaultIfEmpty);
        return $this->getBool($result);
    }
393129
public function _sloppyPhraseFreq($docId, Zend_Search_Lucene_Interface $reader)
    {
        $freq = 0;

        $phraseQueue = array();
        $phraseQueue[0] = array(); // empty phrase
        $lastTerm = null;

        // Walk through the terms to create phrases.
        foreach ($this->_terms as $termId => $term) {
            $queueSize = count($phraseQueue);
            $firstPass = true;

            // Walk through the term positions.
            // Each term position produces a set of phrases.
            foreach ($this->_termsPositions[$termId][$docId] as $termPosition ) {
                if ($firstPass) {
                    for ($count = 0; $count < $queueSize; $count++) {
                        $phraseQueue[$count][$termId] = $termPosition;
                    }
                } else {
                    for ($count = 0; $count < $queueSize; $count++) {
                        if ($lastTerm !== null 
                            && abs(
                                $termPosition - $phraseQueue[$count][$lastTerm] -
                                ($this->_offsets[$termId] - $this->_offsets[$lastTerm])
                            ) > $this->_slop) {
                            continue;
                        }

                        $newPhraseId = count($phraseQueue);
                        $phraseQueue[$newPhraseId]          = $phraseQueue[$count];
                        $phraseQueue[$newPhraseId][$termId] = $termPosition;
                    }

                }

                $firstPass = false;
            }
            $lastTerm = $termId;
        }


        foreach ($phraseQueue as $phrasePos) {
            $minDistance = null;

            for ($shift = -$this->_slop; $shift <= $this->_slop; $shift++) {
                $distance = 0;
                $start = reset($phrasePos) - reset($this->_offsets) + $shift;

                foreach ($this->_terms as $termId => $term) {
                    $distance += abs($phrasePos[$termId] - $this->_offsets[$termId] - $start);

                    if($distance > $this->_slop) {
                        break;
                    }
                }

                if ($minDistance === null || $distance < $minDistance) {
                    $minDistance = $distance;
                }
            }

            if ($minDistance <= $this->_slop) {
                $freq += $reader->getSimilarity()->sloppyFreq($minDistance);
            }
        }

        return $freq;
    }
749934
public function getSearchElevation($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.elevation', $defaultIfEmpty);
        return $this->getBool($result);
    }
1010887
public function getSearchFacetingFacetLinkUrlParametersAsArray($defaultIfEmpty = [])
    {
        $linkUrlParameters = $this->getSearchFacetingFacetLinkUrlParameters();
        if ($linkUrlParameters === '') {
            return $defaultIfEmpty;
        }

        return GeneralUtility::explodeUrl2Array($linkUrlParameters);
    }
116295
public function getLoggingQueryRawDelete($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.logging.query.rawDelete', $defaultIfEmpty);
        return $this->getBool($result);
    }
236625
public function getSearchFrequentSearchesUseLowercaseKeywords($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.frequentSearches.useLowercaseKeywords', $defaultIfEmpty);
        return $this->getBool($result);
    }