elasticsearch/elasticsearch — pull request #4129 by s1monw (2013-11-08 15:11:26+00:00)
Title: Lazily fill CharTermAttribute if needed in CompletionTokenStream

This adds a delegate to CharTermAttributeImpl to be compatible
with the Percolator that needs a CharTermAttribute. Yet compared
to CharTermAttributImpl we only fill the BytesRef with UTF-8 since
we already have it and only if we need to convert to UTF-32 we do it.

Closes #4028