has_scope
Searchkick
has_scope | Searchkick | |
---|---|---|
3 | 11 | |
1,659 | 6,534 | |
0.1% | - | |
5.1 | 9.0 | |
6 months ago | 11 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
has_scope
-
For GET requests - When do you create a new endpoint and when would you use a query param for the backend to decide what data to give back?
I use has_scope and it's typically handled in the index with querystring filters e.g. ?user=1 (or ?users[]=1 if multiple users). I do also add convenience routes for common filters, though, e.g. /users/1/likes.
-
Best way to filter an index page.
The has_scope gem (https://github.com/heartcombo/has_scope) is a nice middleground between ransack and multiple if-statements.
-
Dealing with basic requests / params
I recommend the `has_scope` gem approach https://github.com/heartcombo/has_scope
Searchkick
-
searchkick resource_already_exists_exception
Yesterday, I worked on elasticsearch integration with help of searchkick.
- Searchkick: Intelligent Search Made Easy
-
Most performant way to build an analytics dashboard from a relational database backend that only stores numeric values, where the data the end-user sees is "categorized" into numeric brackets (e.g. 60-79 = Med, 80-100 = High, etc)
I run a large scale production application that does something along these lines. If the data needs to be close to real-time, I'd say use `searchkick` + Elasticsearch, and use `searchkick`'s async feature to "stream" the data from your table to the ES index. Your dashboard will then just query from the ES index via searchkick.
-
Postgres Full Text Search vs. the Rest
You're right, that's actually what we implemented, application-level hooks, but they needed development and maintenance effort that come for free with the adapter we're using for OpenSearch integration, which also comes with welcome features: synonyms, partial matches, and many others.
Spoiler, the adapter is Searchkick: https://github.com/ankane/searchkick
-
Full-text Search with Elasticsearch in Rails
Searchkick
-
How does elasticsearch work with a rails app that's already connected to a MySQL database.
Normally for Rails applications you would use a gem like searchkick since it greatly reduces the initial Elasticsearch complexity.
-
Building a Workflow for Async Searchkick Reindexing
We lean heavily on Elasticsearch at CompanyCam. One of it's primary use cases is serving our highly filterable project feed. It is incredibly fast, even when you apply multiple filters to your query and are searching a largish data set. Our primary interface for interacting with Elasticsearch is using the Searchkick gem. Searchkick is a powerhouse and provides so many features out of the box. One place where we bump up against the edges is when trying to reindex a large collection.
-
Swapping Elasticsearch for Meilisearch in Rails feat. Docker
Convinced? Ok read on and I’ll show you what switching from Elasticsearch to Meilisearch looked like for a real production app — ScribeHub. We also moved from Ankane’s excellent Searchkick gem to the first party meilisearch-rails gem and I’ll show you the changes there as well.
-
Searching/Querying with Active Record Encryption
If you want to use a look-aside pattern (like you might have used with Searchkick + Elasticsearch), you should check out ActiveStash: https://github.com/cipherstash/activestash
- Full Text Searching in a MySQL database via rails.
What are some alternatives?
ransack - Object-based searching.
chewy - High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client
scoped_search - Easily search you ActiveRecord models with a simple query language that converts to SQL.
Rroonga - The Ruby bindings of Groonga.
Elasticsearch Rails - Elasticsearch integrations for ActiveModel/Record and Ruby on Rails
Sunspot - Solr-powered search for Ruby objects
pg_search - pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
Searchlogic - Searchlogic provides object based searching, common named scopes, and other useful tools.
elasticsearch-ruby - Ruby integrations for Elasticsearch