jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paco Avila" <monk...@gmail.com>
Subject Re: Configuring analyzer for property with namespace
Date Tue, 05 Aug 2008 08:20:37 GMT
Yea! Thanks!

On Tue, Aug 5, 2008 at 9:35 AM, Ard Schrijvers <a.schrijvers@onehippo.com>wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message