Iam using searchkick library as an elasticsearch client for Product searching. https://github.com/ankane/searchkick
It is possible to create 'OR' condition and 'AND' condition;
AND operation Product.search where: {price: {lte: 200}, in_stock: true}
OR operation Product.search where: {or: [[{in_stock: true}, {backordered: true}]]}
But Iam stuck with creating multiple 'AND' 'OR' conditions with searchkick.
I need something like
A OR B OR ( C AND D )
or I need like this,
A AND B AND ( C OR D )
Please guide me, how to achieve this
Thanks