Page MenuHomePhabricator

Develop a search bar
Open, LowestPublic

Description

Author: physik

Description:
Currently MathSearch is done via the page Special:MathSearch
Inspired by

https://github.com/DRMF/DRMF/issues/9

we could use the default search bar to include formulae encapsulated by $\TeX$ for example.


Version: unspecified
Severity: enhancement

Details

Reference
bz69561

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 3:30 AM
bzimport added a project: MathSearch.
bzimport set Reference to bz69561.
bzimport added a subscriber: Unknown Object (MLST).

After a very brief discussion with @Chad I took a look at the code of CirrusSearch to investigate if there is a point where one could create a hook for $tex$-input and similar structures.
I could not see an obvious solution. Maybe a plugin for elasticsearch would be more apropriate.

Physikerwelt set Security to None.

I did some experiments with math support of the current cirrus search engine from a user perspective.
For example the following search expression could be used

insource:"E=mc^2</math>" AND Einstein AND NOT Bohr

to find articles about Einsteins Mass Energy Eqivalence relation, but exclude Bohr Einstein debates.
One could imagine to add the $$ feature in the same way as the insource feature was added.

demon added a comment.Jan 27 2015, 5:09 PM

insource is the right thing to do here. I'd really rather not introduce any further syntax oddities like $$.

Mathsearch supports not only string comparision. The tree structure of content of a formulae is anlysed and similarity scores are calculated. There was a whole Workshop on MathSearch were different math search engines were compared.
If it simplifies things also math: could be used rather than $ $.

For the reference the insource change was discussed here
T67783

I had a look at more detailed look at the code.
I think adding the mathsearch feature to the current code is infeasable at the moment. The regular expressions look very complicated.
I get the impression that the query string for MathSearch should be handled by a parser rather than a number of regexp expressions.
I'll develop that functionality for and keep the math specific search bar for now.
At a later point in time, we can consider if the functionality is desired by many users and if it's worth to rewrite this in regexp style.

Whyameri moved this task from Backlog to Doing on the MathSearch board.Jul 21 2015, 6:52 PM
Restricted Application added a project: Discovery. · View Herald TranscriptJul 21 2015, 6:52 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Whyameri moved this task from Doing to Backlog on the MathSearch board.Jul 21 2015, 6:52 PM
demon removed a subscriber: demon.Jul 22 2015, 6:48 AM
Ironholds moved this task from Needs triage to Search on the Discovery board.Aug 4 2015, 8:18 AM