Commit 54ac58030934db89efc8be5239078b2adbf0669e

Authored by Andrew Kane
1 parent 88d12304

Better examples for facets

Showing 1 changed file with 7 additions and 1 deletions   Show diff stats
@@ -421,7 +421,13 @@ Product.search "wingtips", where: {color: "brandy"}, facets: [:size], smart_face @@ -421,7 +421,13 @@ Product.search "wingtips", where: {color: "brandy"}, facets: [:size], smart_face
421 or set `where` conditions for each facet separately: 421 or set `where` conditions for each facet separately:
422 422
423 ```ruby 423 ```ruby
424 -Product.search "2% Milk", facets: {store_id: {where: {in_stock: true}, limit: 10}} 424 +Product.search "wingtips", facets: {size: {where: {color: "brandy"}}}
  425 +```
  426 +
  427 +Limit
  428 +
  429 +```ruby
  430 +Product.search "2% Milk", facets: {store_id: {limit: 10}}
425 ``` 431 ```
426 432
427 Ranges 433 Ranges