searchlogic
searchlogic copied to clipboard
Searchlogic provides object based searching, common named scopes, and other useful tools.
I want to do the equivalent of (Ay) OR (Cy). how can i do that? Right now, I am creating separate queries: ``` @companies_with_email = Company.contact_emails_date_sent_gt(@monday). contact_emails_date_sent_lt(@friday). find(:all, :select =>...
because of some reason,I have to do like this: class Fabric < ActiveRecord::Base has_many :fabric_material_records end class FabricMaterialRecord::Base belongs_to :fabric belongs_to :material, :class_name => "Fabric" end however,as the result: FabricMaterialRecord.material_number_like("PP");...
For the example, take the following schema: Product: id ProductCategory: id, product_id, category_id Category: id Rows: You have one product in multiple categories Product id: 1 ProductCategory id: 1, category_id:...
Following works: @project.alerts.alertable_article_type_title_like_any("Illum") @project.alerts.alertable_task_type_name_like_any("Illum") Following Dosent: @project.alerts.alertable_article_type_title_or_alertable_task_type_name_like_any("Illum")
I guess the example below will speak on it's own : named_scope :select_with_authors, :joins => "LEFT OUTER JOIN authors ON authors.id = posts.author_id" > > Post.select_with_authors.descend_by_author_name > > ActiveRecord::StatementInvalid: Mysql::Error:...
hi after installing searchlogic 2.4.27 i get this error when starting up rails: activesupport-3.0.3/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method`merge_joins' for class `Class' (NameError) I have tried with rails 3.0.3 and 3.0.4 and...
I have a searchlogic that searches for not_null on an association that can occur many times, but I only want to display one UNIQUE/DISTINCT instance of the object: Company.contact_emails_id_not_null I...
Hey guys, FYI this is still not up. https://github.com/binarylogic/searchlogic_example/issues/1 searchlogic_example.binarylogic.com Mike
in the **'Combine scopes with "OR"'** section it says: ``` 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%'" ``` Am I missing...
Hey, Order helper method uses HTML Entities ▲ and ▼ to show the Up and Down arrows. This is then used to create the link's name. However because of rails_xss...