Page MenuHomePhabricator

Ability to search for a word in article title or redirect title (but not article content)
Closed, DuplicatePublic

Description

The template "In title" searches for a word in titles of articles: it does not search titles of redirects. Redirects are often alternative spellings or variations of titles, or latin names for species where the article is at the common name. A link to "in title" is a useful addition to a disambiguation page, picking up all the partial title matches a reader might want.

It would be very useful if there was a way to search for a word in article titles or redirect titles, with a simple link which could be added to dab pages.

Background: There has been discussion about searching on species names (the second part of a latin binomial organism name). I have been upgrading https://en.wikipedia.org/wiki/List_of_Latin_and_Greek_words_commonly_used_in_systematic_names as a target to which links being removed from dab pages can be pointed. I include a search on a term like "Acaule": this finds five articles, but it does not pick up the two articles which have a redirect from a latin name including the word (eg https://en.wikipedia.org/w/index.php?title=Lepidophyllum_acaule&redirect=no).

A straightforward "Search" is less helpful as it picks up all the articles with the word, even if it is only included in a massive navbox such as https://en.wikipedia.org/wiki/Template:Selachimorpha, or perhaps the name of the plant species an animal feeds on, drowning out the relevant hits.

There is information in those redirect titles - someone has consciously decided that this is a useful access point for finding the article - and it seems sad that there seems at present no way to use this information in an "in title" way. The ideal would be to have a parameter within "in title" to specify "Search also titles of redirects". Can anyone help?

I raised this at https://en.wikipedia.org/wiki/Template_talk:In_title#Could_we_have_a_version_which_searches_redirects_too.3F a year ago and was advised to ask at https://en.wikipedia.org/wiki/Help_talk:Searching#.7B.7Bin_title.7D.7D_and_redirects , which I've done more recently with no response.

Event Timeline

PamD raised the priority of this task from to Needs Triage.
PamD updated the task description. (Show Details)
PamD subscribed.

You can search for a word in title with the default search available on Wikimedia sites. I don't know about redirects.

Has this been brought up on the Search discussion page already?

Hmm. Ignore my comment about the "Search discussion page". It says it's only about the Help page content itself, which does not mention Redirects at all.

Sorry, but "You can search for a word in title" is no help - I know about the "in title" template. What I want is the ability to find the word "acaule" in the redirect "Lepidophyllum acaule".

Curiously the "look from" functionality goes to a list which includes both article titles and redirect titles: "in title" and "look from" often go together in the "See also" of a disambiguation page, but the "in title" searches on the narrower set, titles of articles only.

Please reopen this request. The recent closure of T102078 showed that it did not address the question I raised in this request. My request is for a search which can be added as a "See also" in a disambiguation page, which will search for a word to be present in an article title, or a redirect title.

That sounds like a quite different usecase and could be filed as a separate feature request?