Change-Id: Iad6876aae109ad84c5534619f47c72edc900d704
$fields['opening_text'] =
$engine->makeSearchFieldMapping( 'opening_text', SearchIndexField::INDEX_TYPE_TEXT );
- $fields['opening_text']->setFlag( SearchIndexField::FLAG_SCORING );
+ $fields['opening_text']->setFlag( SearchIndexField::FLAG_SCORING |
+ SearchIndexField::FLAG_NO_HIGHLIGHT );
$fields['outgoing_link'] =
$engine->makeSearchFieldMapping( 'outgoing_link', SearchIndexField::INDEX_TYPE_KEYWORD );
*/
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;
/**
*/
const FLAG_NO_HIGHLIGHT = 4;
/**
- * Do not index this field.
+ * Do not index this field, just store it.
*/
const FLAG_NO_INDEX = 8;
/**