My step to support CJK...:
1:add lucene-analyzers-2.0.0.jar to "C:\cygwin\tmp\solr-nightly\lib"
2:use cmd, "cd C:\cygwin\tmp\solr-nightly","ant dist"
3:copy "C:\cygwin\tmp\solr-nightly\dist\solr- 1.0.war" to "C:\cygwin\tmp\solr-nightly\example\webapps\solr.war"

4:modify schema(conf/schema.conf), like yours,,just "<analyzer class="org.apache.lucene.analysis.cjk.CJKAnalyzer"/>"
5:delete solr/data/index;
6:start jetty,java -jar start.jar
7:no error.
8: http://localhost:8983/solr/admin,,,i click analyzer link,,,and try test analyzer chinese word,but nothing happend.

9: i use xml.php to add index(english is well),it show me ok
10: i try lukeall.jar to see solr's index data. but it show me like my attachements.


xml.php maybe error althrough no error show.

i write jl.xml to example/exampledocs

use cygwin: sh post.sh jl.xml,no error。

and i use lukeall.jar to see,,nothing changed.

i failure.

maybe someone can give me some advice to solve it.


--
regards
jl
<?xml version="1.0" encoding="UTF-8"?>
<add>
  <doc>
  	<field name="id">111</field>
    <field name="content">ÐÕÃûÊÇÁõƽ</field>
  </doc>
  <doc>
  	<field name="id">112</field>
    <field name="content">ÐÕÃûÊÇСÍõ</field>
  </doc>
  <doc>
  	<field name="id">113</field>
    <field name="content">ÀÏÆÅ²»ÔÚ¼Ò</field>
  </doc>
</add>

Reply via email to