[
https://issues.apache.org/jira/browse/JCR-1489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12580421#action_12580421
]
Fabrice Duermael commented on JCR-1489:
---------------------------------------
There is still a problem in my configuration, as jackrabbit does not recognize
the jcr namespace, in spite of my declarations in the repository configuration.
Indeed, it contains the following namespace jcr declaration :
ns_reg.properties
#Thu Feb 21 16:54:03 CET 2008
_pre111=jcr
fn_old=http\://www.w3.org/2004/10/xpath-functions
xs=http\://www.w3.org/2001/XMLSchema
_pre101=D
xml=http\://www.w3.org/XML/1998/namespace
jcr=http\://www.jcp.org/jcr/1.0
_pre121=dc
nt=http\://www.jcp.org/jcr/nt/1.0
fn=http\://www.w3.org/2005/xpath-functions
rep=internal
sv=http\://www.jcp.org/jcr/sv/1.0
mix=http\://www.jcp.org/jcr/mix/1.0
=
and ns_idx.properties
#Thu Feb 21 16:54:03 CET 2008
D=11
http\://www.jcp.org/jcr/1.0=3
internal=2
http\://www.jcp.org/jcr/mix/1.0=5
http\://www.jcp.org/jcr/nt/1.0=4
jcr=12
http\://www.w3.org/XML/1998/namespace=7
http\://www.w3.org/2005/xpath-functions=10
http\://www.w3.org/2001/XMLSchema=8
dc=13
http\://www.jcp.org/jcr/sv/1.0=6
http\://www.w3.org/2004/10/xpath-functions=9
However, I get the following exception while declaring jcr:uuid property
javax.jcr.NamespaceException: Unknown namespace prefix jcr.
> 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.