Skip to content
Snippets Groups Projects
Commit f68e5283 authored by Stephan Großberndt's avatar Stephan Großberndt Committed by Benni Mack
Browse files

[BUGFIX] Keep hyphens when lexing words for indexed_search

This change makes sure hyphens are kept as part of a word instead of
removing them. Removing them led to "casesensitive" instead of
"case-sensitive" being lexed and added to the index, which in turn led
to that occurrence not being found when searching for "case-sensitive".

Releases: main, 11.5
Resolves: #93401
Resolves: #77644
Change-Id: I72f8d297384cea002e1ca6cb8e3b1973774199f2
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75146


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent d2703cc4
Branches
Tags
No related merge requests found
......@@ -50,11 +50,16 @@ class Lexer
* @var array
*/
public $lexerConf = [
//Characters: . - _ : / '
'printjoins' => [46, 45, 95, 58, 47, 39],
'casesensitive' => false,
// Set, if case sensitive indexing is wanted.
'removeChars' => [45],
'printjoins' => [
46, // .
45, // -
95, // _
58, // :
47, // /
39, // '
],
'casesensitive' => false, // Set, if case-sensitive indexing is wanted
'removeChars' => [],
];
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment