scoped_search
scoped_search copied to clipboard
Easily search you ActiveRecord models with a simple query language that converts to SQL.
Let's consider classes `Location` and `Organization` which are subclasses of `Placement` using STI. Class `Item` belongs_to one organization and one location. Searching for an `Item` belonging to organization and location...
Hi, I have a model which has a parent to child relationship with itself and would like to search on the model by the presence of absence of a field...
In Foreman, we hit [an issue](http://projects.theforeman.org/issues/8817) in the following scenario: - host has many reports, reports belong to a host - hostgroup has_many hosts, hosts belong to a hostgroup -...
It would be nice to pass a function that returns a hash to complete value to be used for autocomplete for instance ``` ruby scoped_search :on => :xyz, :complete_value =>...
AFAICT it's not possible to correctly :order by a field defined with the :ext_method feature. Would be very useful to me to add this.
Following scoped_search definition: ``` ruby scoped_search :on => [:id, :name, :content, :created_at, :updated_at] ``` If you search for `marco` it finds every record which has been created or updated on...
I was looking at a few things today and was getting test failures for seemingly random reasons. I figured out later that I think its probably due to TZ conversions....
The same error and message is used for many different ambiguous query compositions. In the case of the `has` keyword, it's such a common part of speech that it could...
Environment: * Rails 7.0.8.3 * `scoped_search` (4.1.11) * MariaDB 15.1 * `mysql2` 0.5.4 I have a `scoped_search` set on a single column, and the user entered a long-ish query string:...
This PR adds a new field, `enhanced_filter` to `AutoCompleteBuilder`. `enhanced_filter` takes the following arguments: - `has_column` - Name of the required column - `filter` - Predicate used for filtering Iff...