]> BookStack Code Mirror - bookstack/commit
Searching: Added custom tokenizer that considers soft delimiters.
authorDan Brown <redacted>
Fri, 14 Feb 2025 19:01:51 +0000 (19:01 +0000)
committerDan Brown <redacted>
Fri, 14 Feb 2025 19:01:51 +0000 (19:01 +0000)
commitf4449928f83748d015a633cdc1cef50fe822648c
tree0c04d8e3882fd6fe6a610b9bbd8e4c47a5a1fb6d
parent45a15b479294349638bbe334f8701f077aa899c4
Searching: Added custom tokenizer that considers soft delimiters.

This changes indexing so that a.b now indexes as "a", "b" AND "a.b"
instead of just the first two, for periods and hypens, so terms
containing those characters can be searched within.

Adds hypens as a delimiter - #2095
app/Search/SearchIndex.php
app/Search/SearchOptions.php
app/Search/SearchTextTokenizer.php [new file with mode: 0644]
tests/Search/SearchIndexingTest.php