Hi Art, I wrote an example specifying the kuromoji analyzer("kuromoji") and custom analyzer("my_analyzer") for a field.
curl -XPUT "http://localhost:9200/kuromoji-sample" -d' { "settings": { "index": { "analysis": { "analyzer": { "my_analyzer": { "tokenizer": "kuromoji_tokenizer", "filter": [ "kuromoji_baseform" ] } } } } }, "mappings": { "sample": { "properties": { "title": { "type": "string", "analyzer": "my_analyzer" }, "body" : { "type": "string", "analyzer": "kuromoji" } } } } }' I hope that it will be helpful for you. 2014-08-22 9:18 GMT+09:00 <a...@safeshepherd.com>: > I have the same question about using an analyzer I have written as a > plug-in for ElasticSearch 1.3. > > > https://github.com/elasticsearch/elasticsearch-analysis-kuromoji/blob/es-1.3/README.md > demonstrates only how to use the tokenizers in combination with the > built-in CustomAnalyzer. They do not show how to use the kuromoji analyzer > itself. > > When I try to specify my analyzer for a field, I get errors like this: > > MapperParsingException[Analyzer [special_analyzer] not found for field > [foo]]; > > Can you show an example of how to specify the kuromoji analyzer for a > field? I should then be able to adapt it for use with my plugin analyzer. > > Thanks in advance, > Art > > > > On Tuesday, August 5, 2014 12:34:42 AM UTC-7, Jun Ohtani wrote: > >> Hi, >> >> I think this plugin will be helpful for you. >> >> https://github.com/elasticsearch/elasticsearch-analysis-kuromoji >> 2014/08/05 15:58 <fanc...@gmail.com>: >> >>> I want to use my own Chinese analyzer and I can write lucene analyzer >>> class myself. How can I integrate it to elasticsearch? >>> I googled and found http://www.elasticsearch.org/guide/en/ >>> elasticsearch/guide/current/custom-analyzers.html. But it only combine >>> existing tokenizers and filters. I can use tokenizer writing in java by >>> myself. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "elasticsearch" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to elasticsearc...@googlegroups.com. >>> >>> To view this discussion on the web visit https://groups.google.com/d/ >>> msgid/elasticsearch/c3fe52cd-8cb5-4c53-b0fe-87183deb45bf% >>> 40googlegroups.com >>> <https://groups.google.com/d/msgid/elasticsearch/c3fe52cd-8cb5-4c53-b0fe-87183deb45bf%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/da795847-3ea2-4afb-9a7b-aefdd6f111a0%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/da795847-3ea2-4afb-9a7b-aefdd6f111a0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- ----------------------- Jun Ohtani blog : http://blog.johtani.info -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPW8A5x9xr_4OoHeBjCO%2BYYJHN3-O5pSk2fB7-v0rETKPMRHkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.