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? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.