API for _suggest for Elasticsearch

Authored by Smalyshev.


API for _suggest for Elasticsearch

Task: T106129
Aggregate and resolve suggestions

This merges together all the suggest results, sorts by score,
takes the top $limit results and resolves those into a final result
of the page title and suggestion score.

I think the scores themselves arn't working right yet, always getting
either 1 or 0. But this code should all work right once that starts
returning a proper score.

Not sure if we will need a more complicated merge or not, tbd.

Change-Id: I9c36b9c02a23c30038b1f0d8e8b8a9e310829e7e


Event Timeline

Stanislav Malyshev <smalyshev@gmail.com> committed rECIR783a36aa7437: API for _suggest for Elasticsearch (authored by Stanislav Malyshev <smalyshev@gmail.com>).Aug 14 2015, 9:11 PM