searchlogic
searchlogic copied to clipboard
Searchlogic provides object based searching, common named scopes, and other useful tools.
I have the following named scope: > > Shifts::Shift.cases_service_type_case_customer_referrer_last_name_like("Williams").count > > => 15 I also have this scope: > > Shifts::Shift.cases_service_type_case_customer_name_like("Test").count > > => 2 customer is a table. customer_referrer...
Let's say I have a model User that has and belongs to many Teams. We also have one user with id 1 who has two teams with id's 1 and...
Since version 2.5 searchlogic can not be used in apps which uses the gem "ts-delayed_delta" from thinking-sphinx, too. On startup, this error message is raised: ``` Mysql::Error: Table 'myapp.jobs' doesn't...
Hello, I need your help with my search method. I use search logic to manage filter. thats works. except the problem i have is to search between models. my models...
_This may entirely by my ignorance of searchlogic._ _Giving an empty array to id_is_any() returns all rows. Seems like it should return 0 rows._ ruby-1.8.7-p330 :038 > current_account.groups.id_is_any( [ ]...
I found some old issues, concerning the date_select helper. It looks like there should be support to use this helper in combination with searchlogic. But when I use true %>...
Hi guys, I'm using Rails 2.3.5 and searchlogic 2.4.14 I'm trying to build a search form to specify conditions on a has many through relationship, where the join model is...
Is there an easy way to force searchlogic to generate a empty resultset when no search parameters have been provided? At this time, it generates a very large resultset (i.e....
After a recent upgrade of the searchlogic gem, one of our forms (using formtastic) broke. I narrowed down the problem to gem version 2.4.15 and after. Version 2.4.14 doesn't cause...
Not sure I understand correctly, it might not be a bug. If I use : Activity.user_id_equals_any(current_user.friend_ids) I expect this to be equivalent to Activity.all(:conditions => {:user_id => current_user.friend_ids}) and it's...