From: dcausse Date: Mon, 26 Sep 2016 10:50:23 +0000 (+0200) Subject: Add new type SearchIndexField::INDEX_TYPE_SHORT_TEXT X-Git-Tag: 1.31.0-rc.0~5322^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=commitdiff_plain;h=5417b6edc7e6b8eeaa0299feef2f7e8f1cdbe62c;p=lhc%2Fweb%2Fwiklou.git Add new type SearchIndexField::INDEX_TYPE_SHORT_TEXT Useful for short technical strings such as mime types. Change-Id: If440378f2b7004abed87eca4bbde767212c4b062 --- 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. */