diff --git a/docs/reference/content/builders/filters.md b/docs/reference/content/builders/filters.md index 50018a6c106..23888578c29 100644 --- a/docs/reference/content/builders/filters.md +++ b/docs/reference/content/builders/filters.md @@ -88,8 +88,16 @@ This example creates a filter that selects all documents where the `price` field is equal to `true` or the `qty` field value is less than `20`: ```java -and(or(eq("price", 0.99), eq("price", 1.99) - or(eq("sale", true), lt("qty", 20))) +and( + or( + eq("price", 0.99), + eq("price", 1.99) + ), + or( + eq("sale", true), + lt("qty", 20) + ) +) ``` This query cannot be constructed using an implicit and operation, because it uses the `$or` operator more than once. So it will render as: