lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@m4.dion.ne.jp>
Subject RE: Integrate Lucene Dutchanalyzer in Solr
Date Wed, 21 Jun 2006 10:13:54 GMT
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:nick.snels@gmail.com]
> Sent: Wednesday, June 21, 2006 6:31 PM
> To: solr-user@lucene.apache.org
> 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
> 


Mime
View raw message