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

Support search result highlighting #5

Open

Description

@physikerwelt

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

Activity

  1. jimmyli97 commented on Jun 5, 2015

    @jimmyli97
    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

  2. physikerwelt commented on Jun 5, 2015

    @physikerwelt
    OwnerAuthor

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

  3. jimmyli97 commented on Jun 8, 2015

    @jimmyli97
    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

  4. physikerwelt commented on Jun 9, 2015

    @physikerwelt
    OwnerAuthor

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

  5. jimmyli97 commented on Jun 16, 2015

    @jimmyli97
    Contributor

    Closed by 16bcd7a

  6. physikerwelt commented on Aug 22, 2016

    @physikerwelt
    OwnerAuthor

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

  7. plusparth commented on Aug 22, 2016

    @plusparth
    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions