elasticsearch/elasticsearch — pull request #3443 by nik9000 (2013-08-05 14:58:47+00:00)
Title: Analyze suggestions

This is a somewhat gnarly implementation of what I describe in #3442. It really isn't ready but I'd love some feedback on the approach before I spend any more time making it really right.

At this point I know I need to
* Write tests for it and do more research into using the spare/bytesSpare correctly.
* Move the actual analysis out of the map phase and into the reduce phase.
* Maybe let the user specify an analyzer to use or turn this off entirely. OTOH I think using the normal analyzer sans shingle filter is more than likely what a user wants out of suggestion analysis. It is certainly what I want.
* Undo the unnecessary import change Eclipse has made.

You can test this using the instructions in #3442 until I make real tests.

Closes #3442