Bug #80292
closed
This is still a problem with TYPO3 9 and current git.
We have this issue with mysql fulltext search:
- Search for "TYPO3-Schulung"
- Lexer removes the "-", thus "TYPO3Schulung" is searched for
- "index_fulltext.fulltextdata" is filled without the lexer, thus it contains "TYPO3-Schulung".
- Nothing is found
The first solution would be to override the Lexer and drop "45" from lexerConf.removeChars
. Now this happens:
- Search for "TYPO3-Schulung"
- Lexer does not remove the "-"
- fulltext sql query is
MATCH (index_fulltext.fulltextdata) AGAINST ('+typo3-schulung*' IN BOOLEAN MODE)
- MySQL interprets this as
+typo3 -schulung*
, thus finding pages that contain "typo3" only, but not "schulung*".
I see two solutions:
- Use the lexer for adjusting the fulltextdata during indexing, removing the hyphens (Bindestriche)
- Quote search words when they contain a
-
minus
- Related to Bug #77644: MySQL driver extension breaks searches with hyphens added
I cannot reproduce this problem any more with
TYPO3 11.5.19
PHP 8.1.11
The search term `TYPO3-Schulung` is also marked as found in result.
- Status changed from New to Closed
Also available in: Atom
PDF