solr4.3 怎么实现同音 同义词搜索

以前的版本的部分代码
TermAttribute termAttr;
String encoded;
encoded = metaphoner.encode(termAttr.term());
termAttr.setTermBuffer(encoded);
现在的是4.3的版本了,但没有TermAttribute这个类,只有其它的一些如:CharTermAttribute类,而这些类都没有setTermBuffer()方法和term()方法,本人新入门lucene 和 solr 求解决方案

http://www.iteye.com/job/topic/1133665

参考

请问你找到解决方案了吗?方便说一下嘛?