Page MenuHomePhabricator

MediaWiki search result should render full math tags
Open, MediumPublic

Event Timeline

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

Change 197737 had a related patch set uploaded (by Physikerwelt):
Render math tags in search results

https://gerrit.wikimedia.org/r/197737

Change 197751 had a related patch set (by Physikerwelt) published:
Render math tags in search results

https://gerrit.wikimedia.org/r/197751

Change 197751 merged by Physikerwelt:
Render math tags in search results

https://gerrit.wikimedia.org/r/197751

Screenshot-Search_results_for_sin_-_WikiDemo_-_Mozilla_Firefox.png (1×838 px, 134 KB)
(normal search interface)
Screenshot-Search_results_for_insource:_Riemannzeta_and_insource:_Eulergamma_-_devwiki_-_Mozilla_Firefox.png (1×1 px, 175 KB)

(with CirrusSearch)
Screenshot-insource:-_sin-_-_Search_results_-_Wikipedia,_the_free_encyclopedia_-_Mozilla_Firefox.png (1×838 px, 168 KB)

(before)

Test 1Test 2Test 3
configMath onMath offMath on
0.408940.289370.35656
0.428540.249830.32199
0.604550.292160.26359
0.287670.316340.33134
0.376310.363870.29763
0.303190.302650.31894
0.266150.282420.36471
0.320080.310730.25716
0.412750.248950.29979
0.289370.286590.31426
mean0.369750.294290.31259
stddev0.101560.033210.03495

@TheDJ
I run some performance test on http://drmf-beta.wmflabs.org/w/index.php?search=insource:/sin/&title=Special:Search&go=Go but could not see a significant difference introduced by the new feature

All values are self page generation times in seconds

Change 197737 abandoned by Physikerwelt:
Render math tags in search results

Reason:
Too hacky.

https://gerrit.wikimedia.org/r/197737

Physikerwelt raised the priority of this task from Medium to High.Apr 24 2015, 8:38 PM
Physikerwelt moved this task from Doing to Inbox on the Math board.

Screenshot-Search_results_for_sin_-_WikiDemo_-_Mozilla_Firefox.png (1×838 px, 134 KB)
(normal search interface)
Screenshot-Search_results_for_insource:_Riemannzeta_and_insource:_Eulergamma_-_devwiki_-_Mozilla_Firefox.png (1×1 px, 175 KB)

(with CirrusSearch)
Screenshot-insource:-_sin-_-_Search_results_-_Wikipedia,_the_free_encyclopedia_-_Mozilla_Firefox.png (1×838 px, 168 KB)

(before)

I think those screenshots show that this feature would be a significant improvement. I can certainly that my implementation was somehow hacky since the hooks available are not made for a task like this.
However, I'm disappointed that there is absolutely no input from the search team on a better solution.
In the end we are missing a useful feature that could be used by humans because the source code looked a little bit too complicated. I cannot agree to this attitude.

I've added Deskana who is our prioritizer. I removed patch_for_review as that looks untrue now. Or at least only half true.

Physikerwelt lowered the priority of this task from High to Medium.Jun 11 2017, 12:50 PM

Any updates here. I think this applies to all kind of tags, not only math tags.

debt added subscribers: Jdrewniak, debt.

The wikitext parser looks to be using a image link, and we don't index the image (only the alt text - formula). It'd need some investigation to figure out what's going on. Maybe @Jdrewniak could help with the front end of this.