Change-Id: I080f06a5a09f2d67a153b491555d0dbf65c626d0
$fields['file_text'] =
$engine->makeSearchFieldMapping( 'file_text', SearchIndexField::INDEX_TYPE_TEXT );
- $fields['defaultsort'] = $engine->makeSearchFieldMapping( 'defaultsort',
- SearchIndexField::INDEX_TYPE_TEXT );
- $fields['defaultsort']->setFlag( SearchIndexField::FLAG_SOURCE_DATA );
-
return $fields;
}
*/
const FLAG_NO_INDEX = 8;
- /**
- * Similar to FLAG_NO_INDEX but we inform the SearchEngine
- * that this field should not be part of the search schema
- * by default.
- * SearchEngine implementations could then override its settings
- * or simply use this data for other purposes.
- */
- const FLAG_SOURCE_DATA = 16;
-
/**
* Get mapping for specific search engine
* @param SearchEngine $engine