Skip to content

Commit

Permalink
BUGFIX: Fix alt searchword tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Jul 25, 2024
1 parent d844cba commit 7e44749
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Classes/TextTokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public function tokenize(string $input, string $languageCode, int $minWordLength

if (!$this->loadStopWordsFromFile($languageCodeFilePath)) {
$this->logger->warning(sprintf('Could not load stopWords for language %s from file: %s', $languageCode, $languageCodeFilePath));
return [];
}

$tokens = explode(' ', $input);
Expand Down
2 changes: 1 addition & 1 deletion NodeTypes/Override/NodeTypes.Override.Document.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
search:
elasticSearchMapping:
type: keyword
indexing: "${PunktDe.Neos.AdvancedSearch.stopWordFilteredTokenize(q(node).property('title') + ' ' + q(node).property('metaKeywords') + ' ' + q(node).property('metaDescription'), node)}"
indexing: "${PunktDe.Neos.AdvancedSearch.Indexing.stopWordFilteredTokenize(q(node).property('title') + ' ' + q(node).property('metaKeywords') + ' ' + q(node).property('metaDescription'), node)}"

0 comments on commit 7e44749

Please sign in to comment.