Commit 6850afebfe7ac0c260432eaccada2ca111bf0f86

Authored by Andrew Kane
1 parent 09fdd1ae

Updated readme

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
@@ -40,12 +40,12 @@ Product.search "Butter", fields: [:name, :brand] @@ -40,12 +40,12 @@ Product.search "Butter", fields: [:name, :brand]
40 Product.search "2% Milk", where: {in_stock: true}, limit: 10, offset: 50 40 Product.search "2% Milk", where: {in_stock: true}, limit: 10, offset: 50
41 ``` 41 ```
42 42
43 -More operators 43 +Additional operators
44 44
45 ```ruby 45 ```ruby
46 -Product.search "1% Milk", where: {  
47 - orders_count: 1..10,  
48 - expires_at: {gt: Time.now}, 46 +where: {
  47 + expires_at: {gt: Time.now}, # lt, gte, lte also available
  48 + orders_count: 1..10, # equivalent to {gte: 1, lte: 10}
49 store_id: {not: 2} 49 store_id: {not: 2}
50 } 50 }
51 ``` 51 ```