https://github.com/codica2/sample-article-code-elasticsearch-rails
Sample code from an article
https://github.com/codica2/sample-article-code-elasticsearch-rails
elasicsearch rails sample
Last synced: 2 months ago
JSON representation
Sample code from an article
- Host: GitHub
- URL: https://github.com/codica2/sample-article-code-elasticsearch-rails
- Owner: codica2
- Created: 2019-06-13T14:23:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T13:22:59.000Z (over 3 years ago)
- Last Synced: 2025-06-05T12:39:07.948Z (about 1 year ago)
- Topics: elasicsearch, rails, sample
- Language: Ruby
- Homepage: https://codica.com/blog/developing-rails-web-app-with-elasticsearch/
- Size: 156 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample code from an article "Rails Elasticsearch"
## Requirements
- `ruby 2.6.1`
- `rails 5.2.3`
- `elasticsearch 6.4.0`
- `kibana 6.4.2`
## Getting started
```shell
git clone git@github.com:codica2/sample-article-code-elasticsearch-rails.git
cd sample-article-code-elasticsearch-rails
```
## Install the app's dependencies:
```shell
bundle install && bundle exec rake db:create db:migrate db:seed
```
## Create/Recreate ES index
```bash
rake elasticsearch:reindex
```
## Testing
Before testing make sure `elasticsearch` is up and running
```bash
rspec
```