Author: skabashnyuk
Date: 2009-10-02 11:39:44 -0400 (Fri, 02 Oct 2009)
New Revision: 197
Modified:
jcr/trunk/component/core/src/test/resources/indexing-configuration.xml
Log:
EXOJCR-161 : indexer configuration update
Modified: jcr/trunk/component/core/src/test/resources/indexing-configuration.xml
===================================================================
--- jcr/trunk/component/core/src/test/resources/indexing-configuration.xml 2009-10-02
15:39:10 UTC (rev 196)
+++ jcr/trunk/component/core/src/test/resources/indexing-configuration.xml 2009-10-02
15:39:44 UTC (rev 197)
@@ -1,23 +1,54 @@
<?xml version="1.0"?>
-<!DOCTYPE configuration SYSTEM
"http://www.exoplatform.org/dtd/indexing-configuration-1.0.dtd">
-<configuration
xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
+<!DOCTYPE configuration SYSTEM
"http://www.exoplatform.org/dtd/indexing-configuration-1.2.dtd">
+<configuration
xmlns:jcr="http://www.jcp.org/jcr/1.0"
+
xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
- <!-- aggregate primaryType="nt:file">
- <include>jcr:content</include>
- </aggregate -->
+ <index-rule nodeType="nt:unstructured"
condition="@rule='boost1'">
+ <!-- default boost: 1.0 -->
+ <property>text</property>
+ </index-rule>
- <index-rule nodeType="nt:unstructured" boost="2.0"
condition="ancestor::*/@priority = 'low'">
- <property>Text</property>
- </index-rule>
+ <index-rule nodeType="nt:unstructured"
condition="@rule='boost2'">
+ <!-- boost: 2.0 -->
+ <property boost="2.0">text</property>
+ </index-rule>
- <index-rule nodeType="nt:unstructured" boost="2.0"
condition="parent::indrootparent/@priority = 'low'">
- <property>Text</property>
- </index-rule>
+ <index-rule nodeType="nt:unstructured"
condition="@rule='boost3'">
+ <!-- boost: 3.0 -->
+ <property boost="3.0">text</property>
+ </index-rule>
- <index-rule nodeType="nt:unstructured" boost="2.0"
condition="indrootchild/@priority = 'gg'">
- <property>Text</property>
- </index-rule>
+ <index-rule nodeType="nt:unstructured"
condition="@rule='nsiTrue'">
+ <!-- default value for nodeScopeIndex is true -->
+ <property>text</property>
+ </index-rule>
-</configuration>
+ <index-rule nodeType="nt:unstructured"
condition="@rule='nsiFalse'">
+ <!-- do not include text in node scope index -->
+ <property nodeScopeIndex="false">text</property>
+ </index-rule>
+ <index-rule nodeType="nt:unstructured"
condition="@rule='regexp'">
+ <property isRegexp="true">.*Text</property>
+ </index-rule>
+ <index-rule nodeType="nt:unstructured"
condition="@rule='excerpt'">
+ <property useInExcerpt="false">title</property>
+ <property>text</property>
+ </index-rule>
+
+ <index-rule nodeType="nt:hierarchyNode">
+ <!-- do not index any properties -->
+ </index-rule>
+
+ <aggregate primaryType="nt:file">
+ <include>jcr:content</include>
+ <include>jcr:content/*</include>
+ <include-property>jcr:content/jcr:lastModified</include-property>
+ </aggregate>
+
+ <aggregate primaryType="nt:unstructured">
+ <include-property>child/property</include-property>
+ </aggregate>
+
+</configuration>
\ No newline at end of file