EBernhardson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/348855 )

Change subject: Allow editors to exclude navigation items from search indices
......................................................................

Allow editors to exclude navigation items from search indices

When you perform a particular search, the results can be polluted by
navigation elements that are not supposed to be displayed. This gives
editors the ability to mark sections of the document that should not
be indexed.

Bug: T162905
Change-Id: Iab2b83c3778cd5f7f44736c0da569fd938ae2968
---
M includes/content/WikiTextStructure.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/55/348855/1

diff --git a/includes/content/WikiTextStructure.php 
b/includes/content/WikiTextStructure.php
index 9f79aa8..ae91e21 100644
--- a/includes/content/WikiTextStructure.php
+++ b/includes/content/WikiTextStructure.php
@@ -37,6 +37,9 @@
                'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
                // Collapsed fields are hidden by default so we don't want them 
showing up.
                '.autocollapse',
+               // Content explicitly decided to be not searchable by editors 
such
+               // as custom navigation templates.
+               '.navigation-not-searchable"'
        ];
 
        /**

-- 
To view, visit https://gerrit.wikimedia.org/r/348855
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iab2b83c3778cd5f7f44736c0da569fd938ae2968
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to