Skip to content

Commit 8d1899c

Browse files
algolia-botClaraMullerFluf22
committed
feat(specs): add sortBy trigger on Composition Rules (generated)
algolia/api-clients-automation#5707 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clara Muller <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 3f7c7fc commit 8d1899c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/scala/algoliasearch/composition/Condition.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,15 @@ import algoliasearch.composition.Anchoring._
4545
* Filters that trigger the rule. You can add add filters using the syntax `facet:value` so that the rule is
4646
* triggered, when the specific filter is selected. You can use `filters` on its own or combine it with the `pattern`
4747
* parameter.
48+
* @param sortBy
49+
* Sort criteria that trigger the rule. You can trigger composition rules based on the selected sorting strategy set
50+
* by the parameter `sortBy`. The rule will trigger if the value passed to `sortBy` matches the one defined in the
51+
* condition.
4852
*/
4953
case class Condition(
5054
pattern: Option[String] = scala.None,
5155
anchoring: Option[Anchoring] = scala.None,
5256
context: Option[String] = scala.None,
53-
filters: Option[String] = scala.None
57+
filters: Option[String] = scala.None,
58+
sortBy: Option[String] = scala.None
5459
)

0 commit comments

Comments
 (0)