jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "IndexingConfiguration" by MarcelReutegger
Date Mon, 11 Jan 2010 20:42:03 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "IndexingConfiguration" page has been changed by MarcelReutegger.
http://wiki.apache.org/jackrabbit/IndexingConfiguration?action=diff&rev1=11&rev2=12

--------------------------------------------------

  </configuration>
  }}}
  
- Starting with Jackrabbit version 1.5 you may also use a regular expression for the local
name of a property. A regular expression for the namespace prefix is not supported! Please
make sure you use the correct DTD (the 1.1 version):
+ Starting with Jackrabbit version 1.5 you may also use a regular expression for the local
name of a property. A regular expression for the namespace prefix is not supported in versions
1.5 and 1.6! Please make sure you use the correct DTD (the 1.1 version):
  
  {{{
  <?xml version="1.0"?>
@@ -135, +135 @@

  <configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
    <index-rule nodeType="nt:unstructured">
      <property isRegexp="true">.*Text</property>
+   </index-rule>
+ </configuration>
+ }}}
+ 
+ As of Jackrabbit 2.0 you can also use the match all regexp for the namespace prefix part
of a property name. However that's currently the only supported regular expression. The following
configuration will include all properties that end with 'Text' in the node scope fulltext
index, all others are also indexed, but not used in the node scope index. Please notice the
colon in the regular expression, with the .* expression for the namespace prefix. This matches
all namespaces, even the empty namespace. That is, properties without a prefix. In contrast
a simple .* expression  only matches property names without prefix, but none with a prefix.
+ 
+ {{{
+ <?xml version="1.0"?>
+ <!DOCTYPE configuration SYSTEM "http://jackrabbit.apache.org/dtd/indexing-configuration-1.1.dtd">
+ <configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0">
+   <index-rule nodeType="nt:unstructured">
+     <property isRegexp="true">.*Text</property>
+     <property isRegexp="true" nodeScopeIndex="false">.*:.*</property>
    </index-rule>
  </configuration>
  }}}

Mime
View raw message