elasticsearch/elasticsearch — pull request #4072 by nik9000 (2013-11-04 13:42:55+00:00)
Title: Post filter phrase suggestions

This implementation has a bunch of problems that'll need to be worked
before it is a valid candidate for merging. I don't have time to rebase
it right now but would still love the feedback on problem. The ones I
remember:

1. It performs the filtering by blocking the suggesting thread.
2. Because there is no "exists" query type it uses a limit. I now know
that isn't ass efficient as just using a count but it might be worth
implementing an exists query type for it any way.
3. It feels like there are a lot of plumbing changes required for this
feature. My guess is that is because I'm going about it wrong. This
correlates with #1 pretty well.
4. I have to wrap the filter through the map nodes and parse it during
the reduce step. That feels silly.

Closes #3482