1
0

agent foundation

This commit is contained in:
2026-03-06 00:44:52 +01:00
parent 9819cba733
commit 9a08f96c11
199 changed files with 8522 additions and 1880 deletions

View File

@@ -4,6 +4,8 @@ namespace MintyPHP\Support\Search;
class SearchQueryNormalizer
{
// Prepares a user query for SQL LIKE. Escapes \ and _ (LIKE special chars),
// converts * to %, and wraps with % wildcards if not already present.
public static function normalizeLikeQuery(string $query): string
{
$query = trim($query);
@@ -25,6 +27,7 @@ class SearchQueryNormalizer
return $query;
}
// Strips wildcard chars for relevance scoring — score queries need a clean term, not a LIKE pattern.
public static function normalizeScoreQuery(string $query): string
{
$query = trim($query);