Skip to content

Instantly share code, notes, and snippets.

@arc279
Created October 30, 2014 10:24
Show Gist options
  • Save arc279/1d61f0d61b606e32b5e7 to your computer and use it in GitHub Desktop.
Save arc279/1d61f0d61b606e32b5e7 to your computer and use it in GitHub Desktop.
* request
curl -XPUT 'http://localhost:9200/kuromoji_sample/' -d'
{
"settings":{
"index":{
"analysis":{
"analyzer" : {
"my_analyzer" : {
"tokenizer" : "kuromoji_tokenizer",
"filter" : ["kuromoji_baseform"]
}
}
}
}
}
}
'
* response
{
"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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment