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

Support for conditional indexingRules

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • lucene
    • None

    Description

      JR2 supported conditional indexing rules like below. Similar support should be provided within Oak

      <configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
        <index-rule nodeType="nt:unstructured"
                    boost="2.0"
                    condition="ancestor::*/@priority = 'high'">
          <property>Text</property>
        </index-rule>
        <index-rule nodeType="nt:unstructured"
                    boost="0.5"
                    condition="parent::foo/@priority = 'low'">
          <property>Text</property>
        </index-rule>
        <index-rule nodeType="nt:unstructured"
                    boost="1.5"
                    condition="bar/@priority = 'medium'">
          <property>Text</property>
        </index-rule>
        <index-rule nodeType="nt:unstructured">
          <property>Text</property>
        </index-rule>
      </configuration>
      

      Attachments

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: