Commit bcd6edc872f2214da61a5b3fb16533e181979271

Authored by Andrew Kane
1 parent 03ea015f

Version bump to 4.6.1 [skip ci]

1 -## 4.6.1 (unreleased) 1 +## 4.6.1 (2021-09-25)
2 2
3 - Added `ilike` operator for Elasticsearch 7.10+ 3 - Added `ilike` operator for Elasticsearch 7.10+
4 - Fixed missing methods with `multi_search` 4 - Fixed missing methods with `multi_search`
@@ -103,19 +103,20 @@ Where @@ -103,19 +103,20 @@ Where
103 103
104 ```ruby 104 ```ruby
105 where: { 105 where: {
106 - expires_at: {gt: Time.now}, # lt, gte, lte also available  
107 - orders_count: 1..10, # equivalent to {gte: 1, lte: 10}  
108 - aisle_id: [25, 30], # in  
109 - store_id: {not: 2}, # not  
110 - aisle_id: {not: [25, 30]}, # not in  
111 - user_ids: {all: [1, 3]}, # all elements in array  
112 - category: {like: "%frozen%"}, # like  
113 - category: /frozen .+/, # regexp  
114 - category: {prefix: "frozen"}, # prefix  
115 - store_id: {exists: true}, # exists 106 + expires_at: {gt: Time.now}, # lt, gte, lte also available
  107 + orders_count: 1..10, # equivalent to {gte: 1, lte: 10}
  108 + aisle_id: [25, 30], # in
  109 + store_id: {not: 2}, # not
  110 + aisle_id: {not: [25, 30]}, # not in
  111 + user_ids: {all: [1, 3]}, # all elements in array
  112 + category: {like: "%frozen%"}, # like
  113 + category: {ilike: "%frozen%"}, # ilike
  114 + category: /frozen .+/, # regexp
  115 + category: {prefix: "frozen"}, # prefix
  116 + store_id: {exists: true}, # exists
116 _or: [{in_stock: true}, {backordered: true}], 117 _or: [{in_stock: true}, {backordered: true}],
117 _and: [{in_stock: true}, {backordered: true}], 118 _and: [{in_stock: true}, {backordered: true}],
118 - _not: {store_id: 1} # negate a condition 119 + _not: {store_id: 1} # negate a condition
119 } 120 }
120 ``` 121 ```
121 122
lib/searchkick/version.rb
1 module Searchkick 1 module Searchkick
2 - VERSION = "4.6.0" 2 + VERSION = "4.6.1"
3 end 3 end