From b5600bd1fb1443d150637b6537d08eee83476622 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 16 Jul 2013 05:02:39 -0700 Subject: [PATCH] Updated readme --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f6eb8f..2c5fee7 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,16 @@ Product.search "Butter", fields: [:name, :brand] ```ruby Product.search "2% Milk", where: {in_stock: true}, limit: 10, offset: 50 -# TODO not equal, greater than, less than, ranges, or operator -Product.search "1% Milk", where: {orders_count: 1..10, expires_at: {gt: Time.now}, store_id: {not: 2}} +``` + +More operators + +``` +Product.search "1% Milk", where: { + orders_count: 1..10, + expires_at: {gt: Time.now}, + store_id: {not: 2} +} ``` ### Facets -- libgit2 0.21.0