From 8baf25336fe76598f87d9ce9419b7bf3ad5bb3b8 Mon Sep 17 00:00:00 2001 From: Harish Krishna Date: Thu, 6 Nov 2014 11:08:50 -0500 Subject: [PATCH] fuzziness to the completion suggester --- query/suggest.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/query/suggest.js b/query/suggest.js index 29f2f0b3..e936230a 100644 --- a/query/suggest.js +++ b/query/suggest.js @@ -25,6 +25,9 @@ function generate( params, precision ){ 'completion' : { 'size' : params.size, 'field' : 'suggest', + 'fuzzy' : { + 'fuzziness' : 2 + }, 'context': { 'dataset': params.layers, 'location': {