Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-2079

Jackrabbit breaks <index-rule> with condition

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • jackrabbit-2.16.1-h2
    • jackrabbit-2.16.1-h3
    • None
    • None
    • Flagged
    • Turing Team 187

    Description

      To exclude HTML fields for a specific document type from being indexed, an <index-rule> element with a condition attribute was added to the indexing_configuration.xml.

        <index-rule nodeType="hippostd:html"
                    condition="@element(mynamespace:comments, hippostd:html)/@jcr:primaryType='{http://www.onehippo.org/jcr/hippostd/nt/2.0}html'">
        </index-rule>
      

      This works in Hippo 10.2.10 with Jackrabbit patch version 2.10.1-h16.

      This no longer works in Hippo 10.2.11 with Jackrabbit 2.16.1-h1 (hence REPO-2026) , but also doesn't work in Hippo 10.2.12 with Jackrabbit 2.16.1-h2.

      Apparently, the condition is not evaluated so all HTML fields are excluded from the index.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: