Page MenuHomePhabricator

When users search for "#x y", treat "#x" as a project hashtag
Open, LowPublic

Description

Steps to reproduce: Search for "wikidata arrayobject".

Expected behavior: I expected T92487 to be found. The word "arrayobject" is in a comment and can be found, but "wikidata" is a project tag and is not in the fulltext search index. Yes, I'm aware of the project tag filter on the search page, but this is not accessible from the top-right search box. Also in my use-case I don't care much where the word "wikidata" is mentioned. It should be found wherever it is, not only in the project tags.

Proposal: Please add the project tags to the fulltext search index.

Original report: https://phabricator.wikimedia.org/T92630

Event Timeline

qgil raised the priority of this task from to Needs Triage.
qgil updated the task description. (Show Details)
qgil added a project: Search.
qgil added a subscriber: qgil.

I think it's reasonable for #x y to mean "documents matching query y in project #x", but I don't think x y should mean this on its own.

Technically speaking, it's also impractical to do a huge reindex rebuild every time someone renames a project: we potentially need to reindex millions of objects if project tags are part of the content corpus.

epriestley triaged this task as Low priority.EditedApr 23 2015, 10:43 PM

I have half a diff for this, but project slug lookup is a gigantic mess right now.

I implemented this recently but then pulled it out because ... project slug lookup is a gigantic mess right now.

epriestley renamed this task from Project tags can not be found via the fulltext search index to When users search for "#x y", treat "#x" as a project hashtag.Apr 12 2017, 2:38 PM