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

rep:excerpt not working for content indexed by aggregation in lucene

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.1, 1.7.6, 1.8.0
    • None
    • lucene

    Description

      I mentioned that properties that got indexed due to an aggregation are not considered for excerpts (highlighting) as they are not indexed as stored fields.

      See the attached patch that implements a test for excerpts in LuceneIndexAggregationTest2.

      It creates the following structure:

      /content/foo [test:Page]
       + bar (String)
       - jcr:content [test:PageContent]
        + bar (String)
      

      where both strings (the bar property at foo and the bar property at jcr:content) contain different text.

      Afterwards it queries for 2 terms ("tinc*" and "aliq*") that either exist in /content/foo/bar or /content/foo/jcr:content/bar but not in both. For the former one the excerpt is properly provided for the later one it isn't.

      Attachments

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              diru Dirk Rudolph
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: