[ 
https://issues.apache.org/jira/browse/JCR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcel Reutegger resolved JCR-1489.
-----------------------------------

    Resolution: Invalid

The namespace prefix for jcr:uuid is missing in the configuration.

Use:

<property nodeScopeIndex="true">jcr:uuid</property>

instead, and don't forget to declare the jcr namespace prefix in the 
configuration element.

> Problem with retrieving mix:referenceable jcr:uuid when defining index-rule 
> in indexing configuration
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JCR-1489
>                 URL: https://issues.apache.org/jira/browse/JCR-1489
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: indexing
>    Affects Versions: core 1.4.1
>         Environment: Java 6 / Win 2000
>            Reporter: Fabrice Duermael
>
> If I define an indexing configuration file like :
> <?xml version="1.0"?>
> <!DOCTYPE configuration SYSTEM 
> "http://jackrabbit.apache.org/dtd/indexing-configuration-1.0.dtd";>
> <configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0";>
>   <index-rule nodeType="nt:unstructured">
>     <property nodeScopeIndex="false">data</property>
>     <property nodeScopeIndex="true">semtext</property>
>     <property nodeScopeIndex="true">uuid</property>
>     <property nodeScopeIndex="false">source</property>
>     <property nodeScopeIndex="false">description</property>
>     <property nodeScopeIndex="true">title</property>
>   </index-rule>
>   <analyzers> 
>         <analyzer class="noemic.parsing.text.NoemicTextAnalyzer">
>             <property>semtext</property>
>         </analyzer>
>   </analyzers> 
> </configuration>
> the following  query :
> select * from nt:unstructured where jcr:uuid='[available uuid]'
> returns no rows (of course, I have added the Mixin mix:referenceable).
> But everything works fine If I remove the index-rule.
> I think it is a bug but I have perhaps made a mistake in the property name 
> uuid in the index-rule.
> Thank you for paying attention to this issue.
> Fabrice Duermael

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to