jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radu Ana-Maria <radu.a...@gmail.com>
Subject indexing configuration
Date Wed, 09 Sep 2009 08:14:51 GMT

i've just read the information on
http://wiki.apache.org/jackrabbit/IndexingConfiguration, and i so something
like this:

<index-rule nodeType="nt:unstructured"
              condition="ancestor::*/@priority = 'high'">

  <index-rule nodeType="nt:unstructured"
              condition="parent::foo/@priority = 'low'">



i have some questions:
1. since the condition for ancestor can be write :*/ for the parent can be
write as well yes?
      - because i write something like this:
                       <index-rule nodeType="th:plainDocument"
condition="parent::*/@versionDoc = 'da' ">
         and all the nodes of type plainDocument  are still indexing even if
are children of a node that have property <<versionDoc = 'da'>> am i missing
something in my code?

2. can i make a condition that referes a parent of a parent :
                      <index-rule nodeType="th:plainDocument"
condition="parent::*/*/@versionDoc = 'da' ">
                       </index-rule> (the node's are still indexed ..this
code is ignored)
         is this a correct code? if not, can i do this in an other way? how?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message