Update README.md
This commit is contained in:
parent
86d60523b9
commit
ae832800dd
28
README.md
28
README.md
|
@ -22,21 +22,19 @@ ik-analyzer for solr7.x
|
||||||
<li>
|
<li>
|
||||||
<p>3. 配置solr的managed-schema,添加ik分词器,示例如下;</p>
|
<p>3. 配置solr的managed-schema,添加ik分词器,示例如下;</p>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<pre>
|
<!-- ik分词器 -->
|
||||||
<!-- ik分词器 -->
|
<fieldType name="text_ik" class="solr.TextField">
|
||||||
<fieldType name="text_ik" class="solr.TextField">
|
<analyzer type="index">
|
||||||
<analyzer type="index">
|
<tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" isMaxWordLength="false" useSmart="false"
|
||||||
<tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" isMaxWordLength="false" useSmart="false"
|
conf="ik.conf"/>
|
||||||
conf="ik.conf"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
<filter class="solr.LowerCaseFilterFactory"/>
|
</analyzer>
|
||||||
</analyzer>
|
<analyzer type="query">
|
||||||
<analyzer type="query">
|
<tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" isMaxWordLength="true" useSmart="true"
|
||||||
<tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" isMaxWordLength="true" useSmart="true"
|
conf="ik.conf"/>
|
||||||
conf="ik.conf"/>
|
<filter class="solr.LowerCaseFilterFactory"/>
|
||||||
<filter class="solr.LowerCaseFilterFactory"/>
|
</analyzer>
|
||||||
</analyzer>
|
</fieldType>
|
||||||
</fieldType>
|
|
||||||
</pre>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in New Issue