mirror of https://github.com/apache/lucene.git
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:
parent
b6541aa0a7
commit
e136c15822
|
@ -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>
|
||||
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
AnyObjectId[d738affcf4ef0734391bee0e7ba9cb22860770c6] was removed in git history.
|
||||
Apache SVN contains full history.
|
Loading…
Reference in New Issue