From 5417b6edc7e6b8eeaa0299feef2f7e8f1cdbe62c Mon Sep 17 00:00:00 2001 From: dcausse Date: Mon, 26 Sep 2016 12:50:23 +0200 Subject: [PATCH] Add new type SearchIndexField::INDEX_TYPE_SHORT_TEXT Useful for short technical strings such as mime types. Change-Id: If440378f2b7004abed87eca4bbde767212c4b062 --- includes/search/SearchIndexField.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/search/SearchIndexField.php b/includes/search/SearchIndexField.php index 6806ee5bda..6b5316f009 100644 --- a/includes/search/SearchIndexField.php +++ b/includes/search/SearchIndexField.php @@ -14,6 +14,15 @@ interface SearchIndexField { const INDEX_TYPE_DATETIME = 4; const INDEX_TYPE_NESTED = 5; const INDEX_TYPE_BOOL = 6; + + /** + * SHORT_TEXT is meant to be used with short text made of mostly ascii + * technical information. Generally a language agnostic analysis chain + * is used and aggressive splitting to increase recall. + * E.g suited for mime/type + */ + const INDEX_TYPE_SHORT_TEXT = 7; + /** * Generic field flags. */ -- 2.20.1