Topic on Extension talk:AdvancedSearch

Disable Deepcategory search

6
Summary by Thiemo Kreuz (WMDE)

Set $wgAdvancedSearchDeepcatEnabled = false;.

Jrsovereign (talkcontribs)

Is it possible to use incategory instead of Deepcategory? I can't get SPARQL working.

Thiemo Kreuz (WMDE) (talkcontribs)

I'm not sure how this is SPARQL related. I'm afraid you need to explain this more. What you can always do is just type incategory:… in the search bar. Since this should do more or less the same as the deepcat: keyword, the AdvancedSearch interface as it is now only suggests one of the two keywords.

Jrsovereign (talkcontribs)

So by default when you use Advanced Search it uses deepcat: but I want it to use incategory:

Since I can't get deepcat: working on my MediaWiki site, I wanted to provide the "search by category" functionality, but when people use it, they get a yellow error because SPARQL isn't working, and no results display. Most of my users don't know how to use incategory: in the search bar.

Thiemo Kreuz (WMDE) (talkcontribs)

Oh, you are talking about a third-party installation. In this case you can add the line $wgAdvancedSearchDeepcatEnabled = false; to your LocalSettings.php.

Jrsovereign (talkcontribs)

Thanks. Is there also a setting to completely remove a search box under advanced, such as hiding the line "Pages with these templates"?

Thiemo Kreuz (WMDE) (talkcontribs)

Not as of now, sorry. There are plans to make the interface customizable, see phab:T217446.

Reply to "Disable Deepcategory search"