searchlogic
searchlogic copied to clipboard
Searchlogic provides object based searching, common named scopes, and other useful tools.
I noticed that the search including polymorphic association is using the inner join. Is there any workaround or option that I can use left outer joins? thanks!
The documentation states: User.id_or_age_lt_or_username_or_first_name_begins_with(10) => "id < 10 OR age < 10 OR username LIKE 'ben%' OR first_name like 'ben%'" But I believe this is wrong and the result should...
Hi, I have an issue with searchlogic (since 2.4.25). When trying to loop in an array of method_names with association.send(method_name), sometimes it return searchlogic result instead of the method result...
I'm looking for a way to use Searchlogic to find records which DON'T HAVE records for a given association. For example: "Find all Contacts which have no addresses" ``` class...
I'm not sure if this is a bug or not enough documentation which explains how to perform this type of functionality. Also, how does one properly implement the [ descend...
Order helper doesn't work with symbols in case of ascend_scope/descend_scope. User can't sort descending. Does not work: :sort_by_report_total_amount_asc, :descend_scope => :sort_by_report_total_amount_desc %> Works: 'sort_by_report_total_amount_asc', :descend_scope => 'sort_by_report_total_amount_desc' %> It seems...
When using searchlogic with Rails 2, it tries to load activerecord 3.0.0 dependencies due to the >= version specification in the gemspec.
here is the failing spec it "should handle _or_ed polymorphic conditions like a rockstar" do Audit.auditable_user_type_id_or_auditable_order_type_user_id_eq("5").proxy_options.should == { :conditions => ["something"], :joins => "something else" } end Will give you...
I've got a form like this: Search '40') %> My controller does this: def index options = params[:search] options['source_like_any'] = options['source_like_any'].to_s.split @search = MediaItem.searchlogic(options) @results = @search.all.paginate(:page => params[:page], :per_page...
I can't figure out why ascend_by won't work for me. Here's a console readout >> tapes = Tape.search(:timestamp_gte => "1278361923") => blah blah blah >> tapes.length => 1436 >> tapes.ascend_by_timestamp...