From 0015226d2b617912c78389c72e71891ffa1cf0f7 Mon Sep 17 00:00:00 2001 From: Luca Galli Date: Fri, 17 Apr 2020 15:46:47 +0200 Subject: [PATCH] Fixed duplicated entries in intersect for multiple queries in or --- flexsearch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/flexsearch.js b/flexsearch.js index d8da34a..f2d428d 100644 --- a/flexsearch.js +++ b/flexsearch.js @@ -3461,6 +3461,7 @@ if(!pointer_count || (--pointer_count < count)){ result[count++] = tmp; + check[index] = z + 1; // add the entry to the existing results in case of multiple queries with an or clause if(limit && (count === limit)){