以下の内容はhttps://otiai10.hatenablog.com/entry/2015/04/06/112353より取得しました。


Elasticsearchのkuromojiでワロタ

"吾輩は猫である"

curl "http://localhost:9200/my_index/_analyze?pretty=true&field=description&analyzer=kuromoji" -d "吾輩は猫である。"
{
  "tokens" : [ {
    "token" : "吾輩",
    "start_offset" : 0,
    "end_offset" : 2,
    "type" : "word",
    "position" : 1
  }, {
    "token" : "猫",
    "start_offset" : 3,
    "end_offset" : 4,
    "type" : "word",
    "position" : 3
  } ]
}

ただしくは

curl "http://localhost:9200/my_index/_analyze?pretty=true&field=description&tokenizer=kuromoji_tokenizer" -d "吾輩は猫である。"
{
  "tokens" : [ {
    "token" : "吾輩",
    "start_offset" : 0,
    "end_offset" : 2,
    "type" : "word",
    "position" : 1
  }, {
    "token" : "は",
    "start_offset" : 2,
    "end_offset" : 3,
    "type" : "word",
    "position" : 2
  }, {
    "token" : "猫",
    "start_offset" : 3,
    "end_offset" : 4,
    "type" : "word",
    "position" : 3
  }, {
    "token" : "で",
    "start_offset" : 4,
    "end_offset" : 5,
    "type" : "word",
    "position" : 4
  }, {
    "token" : "ある",
    "start_offset" : 5,
    "end_offset" : 7,
    "type" : "word",
    "position" : 5
  } ]
}



以上の内容はhttps://otiai10.hatenablog.com/entry/2015/04/06/112353より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14