diff --git a/.gitignore b/.gitignore index 0d8b673..deedef9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ js/node_modules js/dist vendor/ composer.lock +analysis/* diff --git a/js/src/admin/index.ts b/js/src/admin/index.ts index 1c985cd..4a8f5f5 100644 --- a/js/src/admin/index.ts +++ b/js/src/admin/index.ts @@ -68,6 +68,7 @@ app.initializers.add('blomstra-search', () => { russian: 'Russian', sorani: 'Sorani (Kurdish)', spanish: 'Spanish', + standard: 'Standard (generic)', swedish: 'Swedish', turkish: 'Turkish', thai: 'Thai', diff --git a/patches/0001-title-autocomplete-grams.patch b/patches/0001-title-autocomplete-grams.patch new file mode 100644 index 0000000..ed824da --- /dev/null +++ b/patches/0001-title-autocomplete-grams.patch @@ -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 \ No newline at end of file