jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@onehippo.com>
Subject RE: Configuring analyzer for property with namespace
Date Tue, 05 Aug 2008 07:35:38 GMT
Hello Paco,

IIRC, you only need to add it the the configuration element, so instead
of 
<configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0">

You get

<configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
		xmlns:okm="http://your-used-namespace">

Make sure your-used-namespace matches your okm namespace. Is this
information not present on [1] ?

Regards Ard

[1] http://wiki.apache.org/jackrabbit/IndexingConfiguration

> 
> I'm trying to configure a different analyzer for one custom 
> property but a exception is thrown because the property is 
> defined with a namespace:
> 
> javax.jcr.NamespaceException: Unknown namespace prefix okm.
> 
> This is the indexing configuration used:
> 
> <?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">
>   <analyzers>
>         <analyzer class="org.apache.lucene.analysis.SimpleAnalyzer">
>             <property>okm:name</property>
>         </analyzer>
>   </analyzers>
> </configuration>
> 
> How can I do it?
> 

Mime
View raw message