Skip to content

Commit

Permalink
Update services.yaml links to correct lines
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Oct 10, 2023
1 parent 05c4f46 commit ea58162
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/add_custom_boosts.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ The boost is enabled when the value of `monsieurbiz.search.product.is_in_stock_s
To create a new boost, you must

- [Create a new class that implements `MonsieurBiz\SyliusSearchPlugin\Search\Request\FunctionScore\FunctionScoreInterface`](../dist/src/Search/Request/FunctionScore/Product/BoostExpensiveProductFunction.php)
- [Tag it with `monsieurbiz.search.request.product_function_score`](../dist/src/Resources/config/services.yaml#L54)
- [Tag it with `monsieurbiz.search.request.product_function_score`](../dist/src/Resources/config/services.yaml#L35)

In our example we will boost, in the search, the product with a price greater than 50.
8 changes: 4 additions & 4 deletions docs/add_custom_entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,23 @@ Also, the `public function getTarget(): string` method must return the value of

If you want to display your entity in the instant search (`instant_search_enabled` is `true` in configuration).

[Declare your instant search request service](../dist/src/Resources/config/services.yaml#L60).
[Declare your instant search request service](../dist/src/Resources/config/services.yaml#38).

[Don't forget to bind the parameter for the service](../dist/src/Resources/config/services.yaml#L6).

### Define your Search request

[Declare your search request service](../dist/src/Resources/config/services.yaml#L67).
[Declare your search request service](../dist/src/Resources/config/services.yaml#45).

[Don't forget to bind the parameter for the service](../dist/src/Resources/config/services.yaml#L6).

You can extends the `MonsieurBiz\SyliusSearchPlugin\Search\Request\Search` class to manage your aggregations like in [products](../src/Search/Request/ProductRequest/Search.php).

### Define your Search query filter

[Declare your search query filter for instant search](../dist/src/Resources/config/services.yaml#L77).
[Declare your search query filter for instant search](../dist/src/Resources/config/services.yaml#55).

[Declare your search query filter for search](../dist/src/Resources/config/services.yaml#L87).
[Declare your search query filter for search](../dist/src/Resources/config/services.yaml#65).

You can extends the `MonsieurBiz\SyliusSearchPlugin\Search\Request\QueryFilter\SearchTermFilter` class to manage your custom behaviour like in [products](../src/Search/Request/QueryFilter/Product/SearchTermFilter.php).

Expand Down
2 changes: 1 addition & 1 deletion docs/add_custom_sorts.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
You can create your own sorter service by implementing the `SorterInterface` interface.
For example, in your test application, [we have a short description sorter](../dist/src/Search/Request/Sorting/Product/ShortDescriptionSorter.php).

Add [the tag `monsieurbiz.search.request.product_sorter` to your service](../dist/src/Resources/config/services.yaml#L49).
Add [the tag `monsieurbiz.search.request.product_sorter` to your service](../dist/src/Resources/config/services.yaml#27).

## Replace existing sorter

Expand Down

0 comments on commit ea58162

Please sign in to comment.