Remove SourceIndexField FLAG_SOURCE_DATA
authordcausse <dcausse@wikimedia.org>
Thu, 1 Sep 2016 15:00:59 +0000 (17:00 +0200)
committerdcausse <dcausse@wikimedia.org>
Thu, 1 Sep 2016 15:03:56 +0000 (17:03 +0200)
Change-Id: I080f06a5a09f2d67a153b491555d0dbf65c626d0

includes/content/WikitextContentHandler.php
includes/search/SearchIndexField.php

index f3f2cb8..f6b1594 100644 (file)
@@ -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;
        }
 
index cfed1e9..6806ee5 100644 (file)
@@ -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