Integrate Lucene Dutchanalyzer in Solr

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Integrate Lucene Dutchanalyzer in Solr

nicksnels1
Hi,

I was wondering how I can get the Dutch analyzer from the Lucene sandbox
integrated in Solr.

Kind regards,

Nick Snels
Reply | Threaded
Open this post in threaded view
|

RE: Integrate Lucene Dutchanalyzer in Solr

Koji Sekiguchi-4
Hi Nick,

You can specify an analyzer class at <analyzer> element
in schema.xml. Please see the following schema.xml
which uses JapaneseAnalyzer:

<?xml version="1.0" ?>
<schema name="example" version="1.1">
  <types>
    <fieldtype name="text" class="solr.TextField">
      <analyzer class="org.apache.lucene.analysis.ja.JapaneseAnalyzer"/>
    </fieldtype>
    <fieldtype name="integer" class="solr.IntField"/>
  </types>
  <fields>
    <field name="id" type="integer" indexed="true" stored="true"/>
    <field name="content" type="text" indexed="true" stored="true"/>
  </fields>
  <uniqueKey>id</uniqueKey>
  <defaultSearchField>content</defaultSearchField>
</schema>

This works fine for me.

Hope this helps.

Koji

> -----Original Message-----
> From: Nick Snels [mailto:[hidden email]]
> Sent: Wednesday, June 21, 2006 6:31 PM
> To: [hidden email]
> Subject: Integrate Lucene Dutchanalyzer in Solr
>
>
> Hi,
>
> I was wondering how I can get the Dutch analyzer from the Lucene sandbox
> integrated in Solr.
>
> Kind regards,
>
> Nick Snels
>