Add ChineseAnalyzer to the mix for *_zh_text fields

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@511600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2007-02-25 20:38:29 +00:00
parent b6541aa0a7
commit e136c15822
2 changed files with 8 additions and 6 deletions

View File

@ -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>

View File

@ -0,0 +1,2 @@
AnyObjectId[d738affcf4ef0734391bee0e7ba9cb22860770c6] was removed in git history.
Apache SVN contains full history.