File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/main/scala/algoliasearch/composition Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 */
4953case 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)
You can’t perform that action at this time.
0 commit comments