elasticsearch/elasticsearch — pull request #5396 by nik9000 (2014-03-12 01:12:11+00:00)
Title: Speed up phrase suggestion scoring

Two changes:
1. In the StupidBackoffScorer only look for the trigram if there is a bigram.
2. Cache the frequencies in WordScorer rather so we don't look them up
again and again and again.

This provides a pretty substantial speedup when there are many candidates.

Closes #5395