From 884298381e0bb46d5641a2facbfa4508606d8822 Mon Sep 17 00:00:00 2001 From: Pierrick Prudhomme Date: Tue, 27 Feb 2018 11:27:13 +0100 Subject: [PATCH] [Search] add exactResults on duplicate check --- src/definitions/modules/search.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index c06ab1b49..f074ff80c 100644 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -596,9 +596,10 @@ $.fn.search = function(parameters) { addResult = function(array, result) { var notResult = ($.inArray(result, results) == -1), - notFuzzyResult = ($.inArray(result, fuzzyResults) == -1) + notFuzzyResult = ($.inArray(result, fuzzyResults) == -1), + notExactResults = ($.inArray(result, exactResults) == -1) ; - if(notResult && notFuzzyResult) { + if(notResult && notFuzzyResult && notExactResults) { array.push(result); } }