From 183b2952c84e19032ebb1a9a2cf1576a99644403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20FOUCRET?= Date: Tue, 12 Jul 2016 06:48:51 +0200 Subject: [PATCH] Wording into the code of the fulltext query builder. --- .../Search/Request/Query/Fulltext/QueryBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module-elasticsuite-core/Search/Request/Query/Fulltext/QueryBuilder.php b/src/module-elasticsuite-core/Search/Request/Query/Fulltext/QueryBuilder.php index 37c74a481..430c0159d 100644 --- a/src/module-elasticsuite-core/Search/Request/Query/Fulltext/QueryBuilder.php +++ b/src/module-elasticsuite-core/Search/Request/Query/Fulltext/QueryBuilder.php @@ -62,7 +62,7 @@ public function create(ContainerConfigurationInterface $containerConfig, $queryT $fuzzySpellingTypes = [SpellcheckerInterface::SPELLING_TYPE_FUZZY, SpellcheckerInterface::SPELLING_TYPE_MOST_FUZZY]; if ($spellingType == SpellcheckerInterface::SPELLING_TYPE_PURE_STOPWORDS) { - $query = $this->getPurewordsQuery($containerConfig, $queryText, $boost); + $query = $this->getPureStopwordsQuery($containerConfig, $queryText, $boost); } elseif (in_array($spellingType, $fuzzySpellingTypes)) { $query = $this->getSpellcheckedQuery($containerConfig, $queryText, $spellingType, $boost); } @@ -147,7 +147,7 @@ private function getWeightedSearchQuery(ContainerConfigurationInterface $contain * * @return QueryInterface */ - private function getPurewordsQuery(ContainerConfigurationInterface $containerConfig, $queryText, $boost) + private function getPureStopwordsQuery(ContainerConfigurationInterface $containerConfig, $queryText, $boost) { $relevanceConfig = $containerConfig->getRelevanceConfig();