medcl/elasticsearch-analysis-pinyin — pull request #7 by piaolingxue (2013-08-26 14:29:13+00:00)
Title: Feature/support polyphone

* 改动情况
1. 支持多音字，例如，音乐，输出yinle, yinyue
2. 添加all模式，输出结果包含原词，所有拼音组合、所有拼音缩写组合

* 注
1. 目前针对多音字拼音的组合采用递归实现，后续会考虑采用栈来实现。

```bash
curl '0:9200/test/_analyze?tokenizer=pinyin_all' -d '音乐abc';echo
```
输入结果
```bash
{"tokens":[{"token":"音乐abc yyabc ylabc yinyueabc yinleabc","start_offset":0,"end_offset":5,"type":"word","position":1}]}
```