aboutsummaryrefslogtreecommitdiffstats
path: root/includes/search/SearchIndexField.php
diff options
context:
space:
mode:
authorStanislav Malyshev <smalyshev@gmail.com>2016-07-08 11:52:55 -0700
committerStanislav Malyshev <smalyshev@gmail.com>2016-07-08 13:02:06 -0700
commitdc9e171e9898de24d8e93bce44ef0e2df110f2a1 (patch)
treeb88baa9ccf679c853bc0cb8cef37e500d5e574f3 /includes/search/SearchIndexField.php
parent507a6aece2707816375468589b7a7992c9ad9380 (diff)
downloadmediawikicore-dc9e171e9898de24d8e93bce44ef0e2df110f2a1.tar.gz
mediawikicore-dc9e171e9898de24d8e93bce44ef0e2df110f2a1.zip
Improve comments on fields and fix opening_text - needs no highlights.
Change-Id: Iad6876aae109ad84c5534619f47c72edc900d704
Diffstat (limited to 'includes/search/SearchIndexField.php')
-rw-r--r--includes/search/SearchIndexField.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/search/SearchIndexField.php b/includes/search/SearchIndexField.php
index 2ea255f40083..7499853801ed 100644
--- a/includes/search/SearchIndexField.php
+++ b/includes/search/SearchIndexField.php
@@ -22,7 +22,9 @@ interface SearchIndexField {
*/
const FLAG_CASEFOLD = 1;
/**
- * This field is for scoring only.
+ * This field contains secondary information, which is
+ * already present in other fields, but can be used for
+ * scoring.
*/
const FLAG_SCORING = 2;
/**
@@ -30,7 +32,7 @@ interface SearchIndexField {
*/
const FLAG_NO_HIGHLIGHT = 4;
/**
- * Do not index this field.
+ * Do not index this field, just store it.
*/
const FLAG_NO_INDEX = 8;
/**