Skip to content

NOW MANAGED ON CODEBERG

Merge branch 'inv-hareesh/development' into search_index_updates

Dan Brownc291d27c19b6
diff --cc app/Search/SearchIndex.php
index a8bd2c4b2,e10219e2d..36f71f6cc
--- a/app/Search/SearchIndex.php
+++ b/app/Search/SearchIndex.php
@@@ -16,13 -16,7 +16,13 @@@ class SearchInde
/**
* A list of delimiter characters used to break-up parsed content into terms for indexing.
*/
- public static string $delimiters = " \n\t.-,!?:;()[]{}<>`'\"";
- public static string $delimiters = " \n\t.,!?:;()[]{}<>`'\"«»";
++ public static string $delimiters = " \n\t.-,!?:;()[]{}<>`'\"«»";
+
+ /**
+ * A list of delimiter which could be commonly used within a single term and also indicate a break between terms.
+ * The indexer will index the full term with these delimiters, plus the terms split via these delimiters.
+ */
+ public static string $softDelimiters = ".-";
public function __construct(
protected EntityProvider $entityProvider