scoped_search
scoped_search copied to clipboard
Easily search you ActiveRecord models with a simple query language that converts to SQL.
Sometimes, quoted string (consisting of some field's name) is interpreted as a field's bool value. Sometimes, it's not. For example, "snippet" translates to "all entries where snipped field is set...
Hey everyone, we are trying to implement search on strings containing a lot of underscore characters and would like to have an optional sanitizing of the right side of search...
`ActiveRecord::Reflection::HasManyReflection.join_keys` has been removed and replaced with `join_primary_key` and `join_foreign_key`. To recreate it, perform a search on a has_many through relationship. This is a cut down version of my scenario...
Hey there. ``` /app/vendor/cache/ruby/2.7.0/bundler/gems/scoped_search-b692e7335357/lib/scoped_search/definition.rb:309: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call /app/vendor/cache/ruby/2.7.0/bundler/gems/scoped_search-b692e7335357/lib/scoped_search/definition.rb:27: warning: The called method `initialize' is defined...
It seems that scoped_search ignores any Postgres column using the case-insensitive type of [citext in Postgres](https://www.postgresql.org/docs/current/static/citext.html). When using the `citext` column type for example an email field along with scoped...
We are using ActionText::RichText, which is using the `has_rich_text` relation, but scoped_search doesn't seem to have support for it so we can't search in the content of the rich_text field....
**What search query did you use?** Issuing a search for the name of the field, ie, a user model with a boolean "admin" field and a search term of "admin"....
When working with a model with multiple belongs_to relationships to the same table, the query being generated ends up ignoring the relationships due to the WHERE clause of the query...
@adamruzicka , If you need any additional info let me know. unsupported example: `5 seconds ago`