Created
October 30, 2014 10:12
-
-
Save arc279/d41c2520400f9025dc84 to your computer and use it in GitHub Desktop.
kuromoji 2.3 with es1.3 failed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/elasticsearch/elasticsearch-analysis-kuromoji/tree/es-1.3#tokenfilter--kuromoji_baseform | |
curl -XPUT 'http://localhost:9200/kuromoji_sample/' -d' | |
{ | |
"index":{ | |
"analysis":{ | |
"analyzer" : { | |
"my_analyzer" : { | |
"tokenizer" : "kuromoji_tokenizer", | |
"filter" : ["kuromoji_baseform"] | |
} | |
} | |
} | |
} | |
} | |
' | |
を叩くと | |
{ | |
"error": "RemoteTransportException[[Delilah][inet[/192.168.255.1:9300]][indices/create]]; nested: IndexCreationException[[kuromoji_sample] failed to create index]; nested: IllegalArgumentException[Custom Analyzer [my_analyzer] failed to find tokenizer under name [kuromoji_tokenizer]]; ", | |
"status": 400 | |
} | |
が返ってきます。 | |
環境はこんな感じです。 | |
* elasticsearch-1.3.4 | |
index.number_of_shards: 1 | |
index.number_of_replicas: 0 | |
* kuromoji プラグイン | |
{ | |
name: "analysis-kuromoji", | |
version: "2.3.0", | |
description: "Kuromoji analysis support", | |
jvm: true, | |
site: false | |
} | |
$ java -version | |
java version "1.8.0_20" | |
Java(TM) SE Runtime Environment (build 1.8.0_20-b26) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode) | |
$ uname -a | |
Darwin * 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment