medcl/elasticsearch-analysis-mmseg — pull request #2 by weiweiwang (2012-11-08 05:50:22+00:00)
Title: fix bug for concurrent tokenizing with a single Seg instance

hi,medcl,
There is a bug in MMsegTokenizerFactory as seg_method is shared among all MMSegTokenizer, which will cause concurrent modification exception and the worse is that the tokenized result is wrong. I fix it and checked the MMsegAnalyzerProvider is ok as MMSegAnnalyzer is reusable.

Please review the modification and merge it into your master so other people who will use this plugin will not be confused again. I will appreciate it very much~