Commit b5600bd1fb1443d150637b6537d08eee83476622
1 parent
f477f073
Exists in
master
and in
21 other branches
Updated readme
Showing
1 changed file
with
10 additions
and
2 deletions
Show diff stats
README.md
@@ -38,8 +38,16 @@ Product.search "Butter", fields: [:name, :brand] | @@ -38,8 +38,16 @@ Product.search "Butter", fields: [:name, :brand] | ||
38 | 38 | ||
39 | ```ruby | 39 | ```ruby |
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 | -# TODO not equal, greater than, less than, ranges, or operator | ||
42 | -Product.search "1% Milk", where: {orders_count: 1..10, expires_at: {gt: Time.now}, store_id: {not: 2}} | 41 | +``` |
42 | + | ||
43 | +More operators | ||
44 | + | ||
45 | +``` | ||
46 | +Product.search "1% Milk", where: { | ||
47 | + orders_count: 1..10, | ||
48 | + expires_at: {gt: Time.now}, | ||
49 | + store_id: {not: 2} | ||
50 | +} | ||
43 | ``` | 51 | ``` |
44 | 52 | ||
45 | ### Facets | 53 | ### Facets |