You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by al...@apache.org on 2011/10/12 15:53:53 UTC

svn commit: r1182368 - in /jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces: indexing-test-2/ indexing-test-2/indexing-configuration.xml indexing-test-2/workspace.xml indexing-test/indexing-configuration.xml

Author: alexparvulescu
Date: Wed Oct 12 13:53:52 2011
New Revision: 1182368

URL: http://svn.apache.org/viewvc?rev=1182368&view=rev
Log:
JCR-2989 Support for embedded index aggregates
 - forgot the index configurations

Added:
    jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/
    jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/indexing-configuration.xml   (with props)
    jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/workspace.xml   (with props)
Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test/indexing-configuration.xml

Added: jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/indexing-configuration.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/indexing-configuration.xml?rev=1182368&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/indexing-configuration.xml (added)
+++ jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/indexing-configuration.xml Wed Oct 12 13:53:52 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!DOCTYPE configuration SYSTEM "http://jackrabbit.apache.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">
+
+    <index-rule nodeType="nt:hierarchyNode">
+        <!-- do not index any properties -->
+    </index-rule>
+    
+    <aggregate primaryType="nt:folder" recursive="true" recursiveLimit="0">
+        <include primaryType="nt:folder">*</include>
+        <include primaryType="nt:file">*</include>
+    </aggregate>
+
+    <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" recursive="true" recursiveLimit="-1">
+        <include>aggregated-node</include>
+        <include-property>child/property</include-property>
+    </aggregate>
+
+</configuration>

Propchange: jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/indexing-configuration.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/workspace.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/workspace.xml?rev=1182368&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/workspace.xml (added)
+++ jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/workspace.xml Wed Oct 12 13:53:52 2011
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+  -->
+<Workspace name="indexing-test-2">
+  <!--
+      virtual file system of the workspace:
+      class: FQN of class implementing FileSystem interface
+  -->
+  <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+    <param name="path" value="${wsp.home}" />
+  </FileSystem>
+  <!--
+      persistence of the workspace:
+      class: FQN of class implementing PersistenceManager interface
+  -->
+  <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
+     <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
+     <param name="schemaObjectPrefix" value="${wsp.name}_"/>
+  </PersistenceManager>
+  <!--
+      Search index and the file system it uses.
+  -->
+  <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
+    <param name="path" value="${wsp.home}/index" />
+    <param name="indexingConfiguration" value="${wsp.home}/indexing-configuration.xml"/>
+    <param name="supportHighlighting" value="true"/>
+    <param name="excerptProviderClass" value="org.apache.jackrabbit.core.query.lucene.WeightedHTMLExcerpt"/>
+    <param name="textFilterClasses" value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.core.query.lucene.IndexingQueueTest$Extractor"/>
+    <param name="extractorPoolSize" value="2"/>
+    <param name="extractorTimeout" value="10"/>
+  </SearchIndex>
+</Workspace>
+

Propchange: jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test-2/workspace.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test/indexing-configuration.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test/indexing-configuration.xml?rev=1182368&r1=1182367&r2=1182368&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test/indexing-configuration.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/repository/workspaces/indexing-test/indexing-configuration.xml Wed Oct 12 13:53:52 2011
@@ -46,6 +46,11 @@
         <!-- do not index any properties -->
     </index-rule>
 
+    <aggregate primaryType="nt:folder" recursive="true" recursiveLimit="10">
+        <include primaryType="nt:folder">*</include>
+        <include primaryType="nt:file">*</include>
+    </aggregate>
+
     <aggregate primaryType="nt:file">
         <include>jcr:content</include>
         <include>jcr:content/*</include>