mmseg4j-solr

mmseg4j for lucene or solr analyzer

  • 所有者: chenlb/mmseg4j-solr
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

mmseg4j-solr

mmseg4j for lucene or solr

<fieldtype name="textComplex" class="solr.TextField" positionIncrementGap="100">
	<analyzer>
		<tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="complex" dicPath="dic"/>
	</analyzer>
</fieldtype>
<fieldtype name="textMaxWord" class="solr.TextField" positionIncrementGap="100">
	<analyzer>
		<tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="max-word" />
	</analyzer>
</fieldtype>
<fieldtype name="textSimple" class="solr.TextField" positionIncrementGap="100">
	<analyzer>
		<tokenizer class="com.chenlb.mmseg4j.solr.MMSegTokenizerFactory" mode="simple" dicPath="n:/custom/path/to/my_dic" />
	</analyzer>
</fieldtype>

tokenizer 的参数:

  • dicPath 参数 - 设置自定义的扩展词库,支持相对路径(相对于 solr_home).
  • mode 参数 - 分词模式。

版本

  • 2.0.0 - 要求 lucene/solr >= 4.3.0。在 lucene/solr [4.3.0, 4.7.1] 测试过兼容可用。
  • 2.1.0 - 要求 lucene/solr 4.8.x
  • 2.2.0 - 要求 lucene/solr [4.9, 4.10.x]
  • 2.3.0 - 要求 lucene/solr [5.0, ]
  • 2.4.0 - 要求 lucene/solr [6.0.0, ], 测试到 6.3.0 通过。

maven

<dependency>
    <groupId>com.chenlb.mmseg4j</groupId>
    <artifactId>mmseg4j-solr</artifactId>
    <version>2.4.0</version>
</dependency>

download

mmseg4j-solr

wiki

wiki

主要指標

概覽
名稱與所有者chenlb/mmseg4j-solr
主編程語言Java
編程語言Java (語言數: 1)
平台
許可證Apache License 2.0
所有者活动
創建於2014-03-31 14:33:06
推送於2024-02-09 21:43:44
最后一次提交2017-01-01 23:39:58
發布數6
最新版本名稱2.4.0 (發布於 2017-01-01 23:39:58)
第一版名稱mmseg4j-solr-2.0.0 (發布於 2014-04-12 20:34:49)
用户参与
星數398
關注者數65
派生數140
提交數41
已啟用問題?
問題數34
打開的問題數16
拉請求數0
打開的拉請求數3
關閉的拉請求數5
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?