From de1cf43c08cf5f1d964ac35a66fce5799f512eeb Mon Sep 17 00:00:00 2001 From: Allison Reinheimer Moore Date: Mon, 6 Jun 2022 13:59:37 -0400 Subject: [PATCH] DOP-3032: adding synonyms to search queries --- src/Query.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Query.ts b/src/Query.ts index 5a9a5d5..baca9e1 100644 --- a/src/Query.ts +++ b/src/Query.ts @@ -244,6 +244,7 @@ export class Query { text: { query: terms, path: 'text', + synonyms: 'search_synonyms', }, }); @@ -252,6 +253,7 @@ export class Query { query: terms, path: 'headings', score: { boost: { value: 5 } }, + synonyms: 'search_synonyms', }, }); @@ -259,6 +261,7 @@ export class Query { text: { query: terms, path: 'title', + synonyms: 'search_synonyms', score: { boost: { value: 10 } }, }, }); @@ -267,6 +270,7 @@ export class Query { text: { query: terms, path: 'tags', + synonyms: 'search_synonyms', score: { boost: { value: 10 } }, }, });