Questions tagged [meta-search]

MetaSearch is a Ruby gem that uses object-based searching for creating search forms.

MetaSearch simplified the task of creating search forms in Ruby on Rails. It provided a DSL for querying models by adding custom fields to the form builder.

The gem is no longer maintained and has been replaced by Ransack. Ransack is a rewrite of MetaSearch and provides many of the same features, but has been designed so that it is easier to maintain with future versions of Rails.

113 questions
0
votes
1 answer

Rails MetaSearch can't use or statement to combine 2 condition

Currently I'm using metasearch gem and I can't figure out how to add 2 conditions for one element in the search form. Here is my code f.select :market_product_status_equals, {}.tap { |h| MarketProduct.status.each { |key,value| h[key]= value …
user648198
  • 2,004
  • 4
  • 19
  • 26
0
votes
1 answer

Rails meta_search greater and less conditions in one combobox

I have a model Phone with checked_by field; if this field is equal to 1, then we know this phone is unchecked, else(>1) - checked. On admin side I can review a list of Phones and I need to create a filter using meta_search to review: All Phones…
Rustam Gasanov
  • 15,290
  • 8
  • 59
  • 72
0
votes
3 answers

Find which alias method is called in rails model

I am new to rails development. I have created some aliases to a method and I want to know that which alias is called. I have this code. alias_method :net_stock_quantity_equals :net_stock_quantity alias_method :net_stock_quantity_gte…
0
votes
1 answer

Meta-search multi-column sort not working

I'm trying to do a multi-column sort with the meta-search gem, but it's not working. I'm doing it via some AJAX, so I'm calling Model.search() directly. I think I'm doing it right, but I'm not 100% sure because I can't seem to find a good doc on…
Grant Birchmeier
  • 17,809
  • 11
  • 63
  • 98
0
votes
1 answer

accessing objects data in an array

If someone has some help/advice about how to tackle this problem I'd really appreciate it. I've created a metasearch engine that for all intensive purposes works ok, but my code is pretty breakable! The following code is a sample var_dump of the…
shanahobo86
  • 467
  • 2
  • 7
  • 23
0
votes
1 answer

metasearch aggregation in php

I'm in the process of creating a metasearch engine and I'm stuck! Using php I send a query to 3 search engines and pull the top 10 urls from each one. I then store these urls in a 2d array with a corresponding score for aggregation purposes ie. the…
shanahobo86
  • 467
  • 2
  • 7
  • 23
0
votes
1 answer

Meta_search error with model associations

I have these in my controller: class AccountsController < ApplicationController def index @search = Account.search(params[:search]) @accounts = @search.order("id desc").includes(:chef).page(params[:pagina]).per(10) end end My view: <%=…
0
votes
1 answer

is there any plugin for complicated searching with mongoid (like meta_search for ActiveRecord)?

I tried meta_search, but after adding "include MetaSearch::Searches::ActiveRecord" into my model, it raised an error as "undefined method `joins_values'" when run "MyModel.search(params[:search])" I think I dont need full text, so I think following…
RainChen
  • 531
  • 4
  • 10
1 2 3 4 5 6 7
8