Ruby gem for integrating intelligent search
Top 7.8% on sourcepulse
Searchkick is a Ruby gem that provides intelligent search capabilities for Rails applications, leveraging Elasticsearch or OpenSearch. It aims to simplify the integration of powerful search features like stemming, synonym handling, typo tolerance, and personalized results, making search smarter and more user-friendly.
How It Works
Searchkick acts as a wrapper around Elasticsearch/OpenSearch, providing a Ruby-friendly DSL for indexing and querying. It automatically handles data synchronization between your database and the search index. Key features include intelligent stemming, custom synonyms, misspelling correction, and boosting mechanisms to prioritize relevant results. It also supports advanced functionalities like aggregations, geospatial search, and semantic search via nearest neighbor capabilities.
Quick Start & Requirements
gem "searchkick"
and either gem "elasticsearch"
or gem "opensearch-ruby"
to your Gemfile.brew install elasticsearch-full
or opensearch
).searchkick
to your models, run Product.reindex
, and then query using Product.search("query")
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
deep_paging: true
, which can impact performance.refresh
is explicitly called.1 month ago
1 day