jason19659 / ik-analyzer

Automatically exported from code.google.com/p/ik-analyzer
0 stars 0 forks source link

结合最新4.1的sorl 该如何配置 filter #111

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
filter 过滤方面 因为取消了工厂类。但是filter 无法嵌套进去

     <analyzer type="index" isMaxWordLength="false" class="org.wltea.analyzer.lucene.IKAnalyzer"> 
            <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>  
         </analyzer>
        <analyzer type="query" isMaxWordLength="true" class="org.wltea.analyzer.lucene.IKAnalyzer"> 
            <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>  
         </analyzer>

这么配置会报错 请指点

Original issue reported on code.google.com by wangfei1...@gmail.com on 8 Mar 2013 at 2:17

GoogleCodeExporter commented 8 years ago
同问,楼主问题解决了吗?

Original comment by leiRead...@gmail.com on 6 Nov 2013 at 2:11

GoogleCodeExporter commented 8 years ago
自己实现IKTokenizerFactory,然后组合tokenizer和filter
<tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory"></tokenizer>
<filter class="solr.LowerCaseFilterFactory"/>
具体实现见Issue 104

Original comment by zhitao....@gmail.com on 26 Nov 2013 at 2:33