You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/02/25 21:38:30 UTC
svn commit: r511600 - in /lucene/solr/trunk/client/ruby/solr-ruby/solr:
conf/schema.xml lib/ lib/lucene-analyzers-2.2-dev.jar
Author: ehatcher
Date: Sun Feb 25 12:38:29 2007
New Revision: 511600
URL: http://svn.apache.org/viewvc?view=rev&rev=511600
Log:
Add ChineseAnalyzer to the mix for *_zh_text fields
Added:
lucene/solr/trunk/client/ruby/solr-ruby/solr/lib/
lucene/solr/trunk/client/ruby/solr-ruby/solr/lib/lucene-analyzers-2.2-dev.jar (with props)
Modified:
lucene/solr/trunk/client/ruby/solr-ruby/solr/conf/schema.xml
Modified: lucene/solr/trunk/client/ruby/solr-ruby/solr/conf/schema.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/solr/conf/schema.xml?view=diff&rev=511600&r1=511599&r2=511600
==============================================================================
--- lucene/solr/trunk/client/ruby/solr-ruby/solr/conf/schema.xml (original)
+++ lucene/solr/trunk/client/ruby/solr-ruby/solr/conf/schema.xml Sun Feb 25 12:38:29 2007
@@ -134,17 +134,16 @@
</fieldtype>
<fieldtype name="text" class="solr.TextField" positionIncrementGap="100">
- <analyzer type="index">
- <tokenizer class="solr.StandardTokenizerFactory"/>
- <filter class="solr.StandardFilterFactory"/>
- <filter class="solr.LowerCaseFilterFactory"/>
- </analyzer>
- <analyzer type="query">
+ <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldtype>
+
+ <fieldtype name="text_zh" class="solr.TextField">
+ <analyzer class="org.apache.lucene.analysis.cn.ChineseAnalyzer"/>
+ </fieldtype>
<!-- Less flexible matching, but less false matches. Probably not ideal for product names,
@@ -194,6 +193,7 @@
Longer patterns will be matched first. if equal size patterns
both match, the first appearing in the schema will be used. -->
<dynamicField name="*_facet" type="string" indexed="true" stored="true" multiValued="true"/>
+ <dynamicField name="*_zh_text" type="text_zh" indexed="true" stored="true" multiValued="true"/>
<dynamicField name="*_text" type="text" indexed="true" stored="true" multiValued="true"/>
</fields>
Added: lucene/solr/trunk/client/ruby/solr-ruby/solr/lib/lucene-analyzers-2.2-dev.jar
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/solr/lib/lucene-analyzers-2.2-dev.jar?view=auto&rev=511600
==============================================================================
Binary file - no diff available.
Propchange: lucene/solr/trunk/client/ruby/solr-ruby/solr/lib/lucene-analyzers-2.2-dev.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream