lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James liu <liuping.ja...@gmail.com>
Subject Re: Using Chinese / How to ?
Date Wed, 03 Jun 2009 06:03:13 GMT
1: modify ur schema.xml:
like
<fieldtype name="text_cn" class="solr.TextField">
        <analyzer class="chineseAnalyzer"/>
    <analyzer>

2: add your field:
<field name="urfield" type="text_cn" indexd="true" stored="true"/>

3: add your analyzer to {solr_dir}\lib\

4: rebuild newsolr and u will find it in {solr_dir}\dist

5: follow tutorial to setup solr

6: open your browser to solr admin page, find analyzer to check analyzer, it
will tell u how to analyzer world, use which analyzer


-- 
regards
j.L ( I live in Shanghai, China)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message