ai forgot to commit

This commit is contained in:
mueh 2026-04-22 15:47:54 +02:00
parent 925ecb0e7c
commit 0fa8fb92eb
3 changed files with 16 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ js/node_modules
js/dist js/dist
vendor/ vendor/
composer.lock composer.lock
analysis/*

View File

@ -68,6 +68,7 @@ app.initializers.add('blomstra-search', () => {
russian: 'Russian', russian: 'Russian',
sorani: 'Sorani (Kurdish)', sorani: 'Sorani (Kurdish)',
spanish: 'Spanish', spanish: 'Spanish',
standard: 'Standard (generic)',
swedish: 'Swedish', swedish: 'Swedish',
turkish: 'Turkish', turkish: 'Turkish',
thai: 'Thai', thai: 'Thai',

View File

@ -0,0 +1,14 @@
diff --git a/src/Commands/BuildCommand.php b/src/Commands/BuildCommand.php
index 9024e1e..9024e1e 100644
--- a/src/Commands/BuildCommand.php
+++ b/src/Commands/BuildCommand.php
@@ -38,6 +38,6 @@ class BuildCommand extends Command
/** Matches Flarum's Search::MIN_SEARCH_LEN — the default minimum query length. */
public const DEFAULT_MIN_SEARCH_LENGTH = 3;
/** N-gram bounds for the title autocomplete subfield (not admin-configurable). */
- private const TITLE_MIN_GRAM = 2;
- private const TITLE_MAX_GRAM = 15;
+ private const TITLE_MIN_GRAM = 3;
+ private const TITLE_MAX_GRAM = 20;
protected $signature = 'blomstra:search:index