Skip to content

Commit

Permalink
#23931 add example section improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
WHLukasz committed Oct 8, 2024
1 parent 06b62e6 commit cc37a3a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/API/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ You can use the `random_seed` parameter to retrieve random content objects. The

Index boosting allows you to prioritize results from specific indices when performing searches across multiple content types (CTDs). This feature increases the score of results from certain indices based on user-defined weights, which is useful when some CTDs are more relevant than others.

Query format:
Pass the `indices_boost` parameter in your query to boost specific CTDs:
!!! Example
Pass the `indices_boost` parameter in your query to boost specific CTDs:

```
/api/v1/search?indices_boost[ctd1Name]=2&indices_boost[ctd2Name]=1.5
```
{ data-search-exclude }
```
/api/v1/search?indices_boost[ctd1Name]=2&indices_boost[ctd2Name]=1.5
```
{ data-search-exclude }

* ctd1Name, ctd2Name – names of the CTDs.
* 2, 1.5 – boost values (higher means more weight)
* ctd1Name, ctd2Name – names of the CTDs.
* 2, 1.5 – boost values (higher means more weight)

0 comments on commit cc37a3a

Please sign in to comment.