elasticsearch/elasticsearch — pull request #4096 by dspangen (2013-11-05 17:42:43+00:00)
Title: fixes issue #4028; CompletionTokenStream was abusing the TermToBytesRefA...

...ttribute interface by reseting the underlying bytesRef on each term.

Didn't add any tests as I didn't know where to start doing so.

Note that issue #4040 attempted to fix this but instead broke the CompletionTokenStream entirely.