Add Exact Match option to Suggest #15410
Added option to term suggest that returns the input term if it exists. Turned off by default so it doesn't break normal behaviour.
The example query given in #11579 would now be:
And the result:
The output now clearly indicates if the term is present. If it is, its score is always 1, representing an exact match, which differentiates this result from other suggestions.
s1monw left a comment
the merge wasn't really successful afaik. There are about 1400 lines of unnecessary code in this PR. Otherwise it looks ok but I can't merge it like this. I left comments inline