jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-2281) Support for conditional indexingRules
Date Fri, 21 Nov 2014 05:20:33 GMT
Chetan Mehrotra created OAK-2281:
------------------------------------

             Summary: Support for conditional indexingRules
                 Key: OAK-2281
                 URL: https://issues.apache.org/jira/browse/OAK-2281
             Project: Jackrabbit Oak
          Issue Type: Sub-task
          Components: oak-lucene
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
             Fix For: 1.2


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

{code:xml}
<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>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message