searchlogic icon indicating copy to clipboard operation
searchlogic copied to clipboard

Searchlogic provides object based searching, common named scopes, and other useful tools.

Results 101 searchlogic issues
Sort by recently updated
recently updated
newest added

Being able to pass multiple arguments is a great idea for custom named_scopes in the model but IMHO this feature should not be enabled by default on Searchlogic dynamic named_scopes....

Please replace line 99 of search.rb scope = conditions.inject(klass.scoped(current_scope)) do |scope, condition| with scope = conditions.inject(klass.scoped(current_scope || {})) do |scope, condition| otherwise it doesn't work with Rails 2.2.2 This issue...

I have the following using searchlogic: ``` @todos = Todo.contact_user_id_is(current_user). contact_campaign_id_is(@campaign). current_date_lte(Date.today). done_date_null. ascend_by_current_date ``` I only want @todos to contain a Todo record for a single contact_id (contact_id is...

I have been getting the following error: > private method `binding' called for nil:NilClass > /opt/ruby1.9.1/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/whiny_nil.rb:52:in`method_missing' Running: - Rails 2.3.5 - Ruby 1.9.1 - CentOS release 5.4 (Final) I put...

I do not understand why I m getting this message. The query is built and executed properly. Is there a way to prevent this warning? Here is my query. self.timesheets.tsdate_gte(period['begin']).tsdate_lte(period['end']).breakfast_eq_or_lunch_eq_or_dinner_eq(true).ascend_by_tsdate...

I defined a scope_procedure and I am trying to put the output into a variable name and so run the scoped procedure Company.search(:awesome => true).all But when this search_procedure comes...

I have a Company that has_many ContactEmails :through => :contacts I want to do a search on Company.contact_emails.this_week Where this_week is a named-scope defined for contact_emails... I then went to...

possible_variants.sku_equals(array_of_sku) returns: SELECT \* FROM `variants` WHERE ((variants.sku IN ('DUVR14FL-BS-T','DUVR14FL-BS-K')) AND (variants.product_id = 2)) but possible_variants.sku_does_not_equal(array_of_sku) returns: SELECT \* FROM `variants` WHERE ((variants.sku != 'DUVR14FL-BS-T','DUVR14FL-BS-K') AND (variants.product_id = 1)) Thus...

I cannot understand what I have done wrong here. Have I defined the associations incorrectly? ``` create_table "parameters", :force => true do |t| t.string "name" t.string "value" t.integer "reference_id" t.string...