Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Support search result highlighting #5

Open
physikerwelt opened this issue Jun 1, 2015 · 7 comments
Open

Support search result highlighting #5

physikerwelt opened this issue Jun 1, 2015 · 7 comments

Comments

@physikerwelt
Copy link
Owner

Currently the XML result generated by the XQuery expression does not contain search result highlighting.
This can be added by using the functx:path-to-node function like demonstrated here https://github.com/TU-Berlin/mathosphere/blob/099e97d01a7c9fef7f8f4ab97165ab60143dc8f2/mathosphere-core/src/main/java/com/formulasearchengine/mathosphere/mml/CMMLInfo.java#L43
The result format should comply with
http://ntcir-math.nii.ac.jp/download/NTCIR11-Math2-format.pdf from @kohlhase.

Ping @jimmyli97

@jimmyli97
Copy link
Contributor

Shouldn't need path-to-node: NTCIR format only specifies ID as necessary to identify the highlighted element.

So something like

data($x/@id)

should be enough

@physikerwelt
Copy link
Owner Author

@jimmyli97 clever. For the LaTeXML format that will work fine and be even faster than the MWS solution.

@jimmyli97
Copy link
Contributor

This requires removing the header/footer getter/setter functionality from XMLQueryGenerator in order to properly insert the external variable declaration for query ID because the declaration has to go after the namespace but before the for loop

See #6

@physikerwelt
Copy link
Owner Author

I have investigated that but I do not see the connection.

@jimmyli97
Copy link
Contributor

Closed by 16bcd7a

@physikerwelt
Copy link
Owner Author

@plato2000 can you test if that change fixes the problem you describe https://phabricator.wikimedia.org/T143554 for basex

@plusparth
Copy link
Collaborator

@physikerwelt I get this when I update that: UNEXPECTED SERVER ERROR: com.formulasearchengine.mathmlquerygenerator.XQueryGenerator.setHeader(Ljava/lang/String;)Lcom/formulasearchengine/mathmlquerygenerator/XQueryGenerator;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants