Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3674

Search Excerpt highlighting is not correct

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.0.18, 1.0.23
    • None
    • query
    • None

    Description

      We have the following text on a jcr:content node :

      A state agency’s Conflict of Interest Code must reflect the current structure of the organization and properly identify officials andemployees

      On executing the following query :

      //*[jcr:contains(., 'conflict of interest')]/rep:excerpt(.)

      we get a row whose excerpt value is having wrong placement of <strong></strong> tags.

      Observed result:

      <div><span>&lt;p&gt;A state agency’s Conflict <strong>of</strong> Interest Code must reflect the current structure <strong>of</strong> the organization and properly identify <strong>of</strong>ficials andemployees&lt;/p&gt;</span></div>

      I don't think it is expected to have

      <strong>of</strong>ficials

      in the excerpt.

      We get the excerpt value in the following manner :
      org.apache.jackrabbit.oak.jcr.query.RowImpl#getValue("rep:excerpt(" + nodePath + ")")

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              srbhatna Srijan Bhatnagar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: