From 2e184610fc4ed2dc6c8b30e6f032eda4bec06651 Mon Sep 17 00:00:00 2001 From: ianshward Date: Tue, 3 Jan 2023 22:30:20 -0500 Subject: [PATCH] Fix enrich on multi-field search Fixes #352 --- src/document.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/document.js b/src/document.js index 395ad19..3bb68bc 100644 --- a/src/document.js +++ b/src/document.js @@ -568,6 +568,7 @@ Document.prototype.search = function(query, limit, options, _resolve){ key = field_options["field"]; query = field_options["query"] || query; limit = field_options["limit"] || limit; + enrich = field_options["enrich"] || enrich; } if(promises){