Anomie added a comment. In https://phabricator.wikimedia.org/T119316#1867508, @jayvdb wrote:
> Thanks. Is that the only case where non-local pages are included in the > results (by default)? No idea, you'd have to ask someone who knows about CirrusSearch stuff. I do know that there's code for a feature of searches returning interwiki results as a sidebar, and those are returned separately. > I checked https://phabricator.wikimedia.org/tag/globaluserpage/ , and they > dont appear in search results. I wonder if they'd consider that a bug? > An existing example where the API and UI differ: changes in the > $wgNamespacesToBeSearchedDefault > <https://www.mediawiki.org/wiki/Manual:$wgNamespacesToBeSearchedDefault> are > not reflected in the API. Search namespaces do not default to > $wgNamespacesToBeSearchedDefault . Hmm. If it wouldn't be a breaking change I'd consider fixing the srnamespace default to use that setting. > It is very odd that Search API parameters `interwiki` and `redirect` exist, > but these non-local files can not be excluded...? 'srinterwiki' controls whether that sidebar thing I mentioned is used. ApiQuerySearch doesn't have a 'redirect' parameter. TASK DETAIL https://phabricator.wikimedia.org/T119316 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Anomie Cc: Anomie, jayvdb, Aklapper, StudiesWorld, binbot, pywikibot-bugs-list, Tgr, Legoktm _______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs