elasticsearch/elasticsearch — pull request #6773 by areek (2014-07-07 19:25:02+00:00)
Title: Phrase Suggester: Add option to filter out phrase suggestions

The newly added filter option will let the user provide a template query which will be executed for every
phrase suggestions generated to ensure that the suggestion matches at least one document for the query.
The filter query is only executed on the local node for now. When the new filter option is used, the
size of the suggestion is restricted to 20.

Closes #3482