{"id":16059389,"url":"https://github.com/donrestarone/rails-elasticsearch","last_synced_at":"2026-01-15T22:25:07.690Z","repository":{"id":40089072,"uuid":"270871316","full_name":"donrestarone/rails-elasticsearch","owner":"donrestarone","description":"a sample application that features elasticsearch with autocompletion/suggestion + highlights","archived":false,"fork":false,"pushed_at":"2023-03-08T19:17:28.000Z","size":64,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T21:41:58.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/donrestarone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-09T01:11:10.000Z","updated_at":"2020-06-11T13:50:14.000Z","dependencies_parsed_at":"2024-10-27T16:17:41.938Z","dependency_job_id":"c4b1ca1d-5d02-4f78-b380-4bbb325ccda8","html_url":"https://github.com/donrestarone/rails-elasticsearch","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.30000000000000004","last_synced_commit":"4716e42f163986053653e0fffd9f5e0a7c64ac73"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donrestarone%2Frails-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donrestarone%2Frails-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donrestarone%2Frails-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/donrestarone%2Frails-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/donrestarone","download_url":"https://codeload.github.com/donrestarone/rails-elasticsearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246769968,"owners_count":20830771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T04:00:54.115Z","updated_at":"2026-01-15T22:25:07.661Z","avatar_url":"https://github.com/donrestarone.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n## To install elastic-search on ubuntu\n\ngrab the elastic public GPG key and put it into apt\n```bash\ncurl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -\n```\nadd the elastic source\n\n```bash\necho \"deb https://artifacts.elastic.co/packages/7.x/apt stable main\" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list\n```\n\n\n```bash\nsudo apt update\n```\n\n```bash\nsudo apt install elasticsearch\n```\n\nto start elastic search\n```bash\nsudo systemctl start elasticsearch\n```\n\n## Setup the rails app\n```bash\nrails db:create \u0026\u0026 rails db:migrate \u0026\u0026 rails db:seed \u0026\u0026 rails s\n```\n\n## What you can expect\n\nCheck out the tests for queries. Here I am verifying the behavior of word stems, misspelling, highlighting and suggestions.\n![Rspec tests](https://i.imgur.com/vpN8N8y.png)\n\nWith postman we see the JSON structure that is returned by the API. In this example, I misspell Wonder Woman and get a suggestion with the correct spelling\n![Postman tests](https://i.imgur.com/ZtDsrx9.png)\n\n\nIn this example, we see the highlighting feature. \n![Postman tests](https://i.imgur.com/fC9kI4L.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonrestarone%2Frails-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdonrestarone%2Frails-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdonrestarone%2Frails-elasticsearch/lists"}