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
1
vote
1 answer

Meta_Search undefined method error

Intro: I am working on a Car dealer application so I have a table named cars with fields carname_id and carmodel_id. carname_id and carmodel_id are taken from 2 tables named carnames and carmodels where I keep all car names and car models. Now I've…
rmagnum2002
  • 11,341
  • 8
  • 49
  • 86
1
vote
2 answers

UTF-8 error with Cucumber feature

I’m using Rails 3.0.7 and ruby 1.9.2 with cucumber and capybara. I just had this problem, and I can’t find a solution :( invalid byte sequence in US-ASCII (ArgumentError) :10:in synchronize' (eval):2:inclick_button' …
Flink
  • 11
  • 1
  • 2
1
vote
2 answers

Meta_Search: Search on number of associated entries

I have the following Rails models: class Entry < ActiveRecord::Base has_and_belongs_to_many :tags, :uniq => true end And class Tag < ActiveRecord::Base has_and_belongs_to_many :entries, :uniq => true end Just so it's clear, an 'entry' can have…
greggannicott
  • 885
  • 2
  • 9
  • 22
1
vote
0 answers

Use Meta-Search to render xml

The Metasearch gem produces something like this: Started GET "/isbns/onixxml?utf8=%E2%9C%93&search%5Btitle_contains%5D=flickers&5D=&commit=Search" for 127.0.0.1 at 2011-08-14 09:40:39 +0100 Processing by IsbnsController#onixxml as HTML …
snowangel
  • 3,452
  • 3
  • 29
  • 72
1
vote
2 answers

Rails 3 and MetaSearch

I am trying to implement the meta_search gem in my application to filter on various fields in a billing table: class PeriodBillingsController < ApplicationController def index @sla = Sla.find(params[:sla_id]) @search =…
Katie M
  • 1,111
  • 6
  • 21
  • 31
1
vote
2 answers

Rails: Metasearch breaks when scoped and paginated?

I have a searchable set of photos, and I want to limit the results for the index page to ones that are public (ie don't belong to a private collection, aka. :collection_id=>nil). I have the following scope in my model: scope :community,…
Andrew
  • 42,517
  • 51
  • 181
  • 281
1
vote
1 answer

rails metasearch sort by nested resource

Can you sort by nested resource with metasearch? normally, item.customer_id so sort would be <%= sort_link @search, :customer_id %> but would like to sort by the customer.first_name
pcasa
  • 3,710
  • 7
  • 39
  • 67
1
vote
1 answer

stop meta_search doing sql to early

in the docs it's said: MyObject.search() returns an instance of MetaSearch::Builder (something like ActiveRecord::Relation). But in my case when I do this I get a collection of objects because the sql-query is send to the database. I would like to…
toy
  • 543
  • 1
  • 6
  • 16
1
vote
1 answer

Merge Search and Filter Rails 3 and Meta_Search

I have this code:
<%= form_for @search, :url => root_path, :html => {:method => :get} do |f| %> <%= f.text_field :bairro_or_cidade_or_logradouro_or_estado_contains ,:id =>…
user547202
1
vote
2 answers

What to consider first when designing a meta-search engine using Erlang, Mnesia and Yaws?

Can someone explain to me what to consider first when designing a meta-search engine using Erlang, Mnesia and the Yaws web server? This engine should have SMS capability but I am still wondering how I am going to incorporate this feature...
1
vote
2 answers

rails 3 meta_search usage

I am in the process of upgrading my app from Rails2 to Rails3. My Rails2 app uses searchlogic heavily. After googling i've come to know that searchlogic is not compatible with Rails3 and need to use meta_search instead. But i havent quite…
Pratik Khadloya
  • 12,509
  • 11
  • 81
  • 106
1
vote
1 answer

Ruby on Rails using active_admin and ransack, paging error on a active_admin:resource

The error: Collection is not a paginated scope. Set collection.page(params[:page]).per(10) before calling :paginated_collection. unless collection.respond_to?(:num_pages) raise(StandardError, "Collection is not a paginated scope. Set…
1
vote
0 answers

How to include polymorphic association in 'includes' Rails

I have this in model: belongs_to :merchant_owner, :polymorphic => true I want to make query like this: @search = Merchant.includes(:merchant_owner).search @merchants = @search.order But I get this error in views: You can't create a…
1
vote
1 answer

ransack search is not working with partials

I have tried using the 'ransack' search with my application, it works as long as it is in the index view of the controller, it does not work when I try putting the same code in partials. The partial has the header with a search field in it My index…
samikb
  • 25
  • 5
1
vote
1 answer

rails 4: i can not install meta search gem file

i have written in the gem file - gem "meta_search", :git => "git://github.com/ernie/meta_search.git" but getting this error message - In Gemfile: meta_search (>= 0) ruby depends on actionpack (~> 3.1) ruby rails (= 4.0.0) ruby…
Mashpy Rahman
  • 698
  • 8
  • 16