From 0e91d4ddc2d85c4191085e81250576529801564c Mon Sep 17 00:00:00 2001 From: David Leifker Date: Fri, 15 Nov 2024 15:46:27 -0600 Subject: [PATCH] docs(search): example tag AND condition --- docs/how/search.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/how/search.md b/docs/how/search.md index 2274fe7c09240..652338f8f581a 100644 --- a/docs/how/search.md +++ b/docs/how/search.md @@ -359,6 +359,33 @@ queryConfigurations: boost_mode: multiply ``` +Similar example to boost with `primary` AND `gold` instead of the previous OR condition. + +```yaml +queryConfigurations: + - queryRegex: .* + + simpleQuery: true + prefixMatchQuery: true + exactMatchQuery: true + + functionScore: + functions: + + - filter: + bool: + filter: + - term: + tags.keyword: urn:li:tag:primary + - term: + tags.keyword: urn:li:tag:gold + weight: 3.0 + + + score_mode: multiply + boost_mode: multiply +``` + ##### Example 2: Preferred Data Platform Boost the `urn:li:dataPlatform:hive` platform.