Is a model of products with the indices
define_index do
indexes: name
indexes description
has product_shops.price,: as =>: price
has catalog_product_connections.catalog_id,: as =>: catalog_id
end
Need ability to filter by price.
The controller write this:
Product.search(’’, :with => {:price => params[:
price_from].to_i…params[:price_to].to_i})
It works.
But how to specify the query type: price > 1000?
I have tried this:
Product.search(’’, :with => [‘price>?’, params[: price_from]])
getting error
searchd error (status: 1): invalid or truncated request
What to do?