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
hello,

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

<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>

"

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' ">
                       </index-rule>
         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?


10x,
ana

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