Skip to content

Commit

Permalink
docs(search): example tag AND condition (#11870)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-leifker authored Nov 15, 2024
1 parent 35c2a91 commit 576ab6a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/how/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 576ab6a

Please sign in to comment.