From 2dc04ccdb45a2ad4e31a4d76e45d37b20bb88501 Mon Sep 17 00:00:00 2001 From: dcausse Date: Thu, 1 Sep 2016 17:00:59 +0200 Subject: [PATCH] Remove SourceIndexField FLAG_SOURCE_DATA Change-Id: I080f06a5a09f2d67a153b491555d0dbf65c626d0 --- includes/content/WikitextContentHandler.php | 4 ---- includes/search/SearchIndexField.php | 9 --------- 2 files changed, 13 deletions(-) diff --git a/includes/content/WikitextContentHandler.php b/includes/content/WikitextContentHandler.php index f3f2cb8f55..f6b1594b17 100644 --- a/includes/content/WikitextContentHandler.php +++ b/includes/content/WikitextContentHandler.php @@ -142,10 +142,6 @@ class WikitextContentHandler extends TextContentHandler { $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; } diff --git a/includes/search/SearchIndexField.php b/includes/search/SearchIndexField.php index cfed1e9c14..6806ee5bda 100644 --- a/includes/search/SearchIndexField.php +++ b/includes/search/SearchIndexField.php @@ -36,15 +36,6 @@ interface SearchIndexField { */ 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 -- 2.20.1