Skip to content

coolprobn/rails-search-engine

Repository files navigation

Rails Search Engine with Elastic Search

You can read the blog here

Clone the app

    $ git clone git@github.com:coolprobn/rails-search-engine.git

App Setup

Install required Gems

    $ cd rails-search-engine
    $ bundle install

Database

From command line:

rails db:setup

This will create database, load the schema and seed the database with code inside db/seeds.rb

Check seeded records

Go to rails console rails c and check the count of all records, you should have 2 authors, 5 categories and 4 articles.

Commands:

    > Author.count
    => 2
    
    > Article.count
    => 4
    
    > Category.count
    => 5

Fully working code

Fully working code is in the branch app-search.

You can find the pull request with the changes for app-search here

About

Full app search engine with Rails - Example app for the blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published