Page MenuHomePhabricator

Implement search operator for finding section titles (e.g. "insectiontitle:" )
Open, LowPublicFeature

Description

Author: penbat2001

Description:
I find the "intitle" and "lookfrom" Wikipedia search options (as in '''<nowiki>intitle:"search phrase"</nowiki>''' and '''<nowiki>lookfrom:"search phrase"</nowiki>''') to be very useful to find articles relating to a subject of interest.

However it would also be useful if I could look for section titles within articles using "intitle" and "lookfrom" rather than just article titles. I bet there are plenty of sections tucked away which would be of interest to me and i might llke to link to.


Version: unspecified
Severity: enhancement

Details

Reference
bz25062

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:12 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz25062.
bzimport added a subscriber: Unknown Object (MLST).

rainman wrote:

This would be in principle possible because section names are separately stored in the search index, but is currently not implemented.

*** Bug 25063 has been marked as a duplicate of this bug. ***

bobobjohnae wrote:

I recently started a thread at Wikipedia:Village pump (technical) inquiring about this functionality as well (http://en.wikipedia.org/wiki/Wikipedia:VPT#How_to_search_for_any_articles_with_a_section_named_.22X.22).

An example of where this feature would be useful on Wikipedia is searching for articles that contain sections titled "In popular culture" and "Criticism" -- common names for sections that often contain very poor quality content.

If this functionality was added, I think that, in keeping with the current naming scheme for the other search qualifiers (intitle, incategory, etc.), a good name for this one would be "insectiontitle".

Has there been any progress made on this since the last post, or has it been decided that this is not worth implementing?

Thank you.
~ Mesoderm

(In reply to comment #1)

This would be in principle possible because section names are separately stored
in the search index, but is currently not implemented.

Is that a Lucene-specific feature (which Wikimedia wikis use) or also by default in core when using MySQL Full-text?

debt subscribed.

Is this still something that the community needs / wants? If not, maybe we should close this.

Removing Discovery-Search project tag at this time.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:00 AM
Aklapper removed a subscriber: wikibugs-l-list.
Frostly subscribed.

Is this still something that the community needs / wants? If not, maybe we should close this.

Removing Discovery-Search project tag at this time.

This is a feature that I would personally want. I concur with bobobjohnae's comment above that "An example of where this feature would be useful on Wikipedia is searching for articles that contain sections titled "In popular culture" and "Criticism" -- common names for sections that often contain very poor quality content."