Skip to content

cloud66-samples/rails-psql-elasticsearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SearchBox.io Sample Rails Application.

This example illustrates basic search features of SearchBox.io (ElasticSearch as service).

Each CRUD operation on documents is reflected to search index in real time.

To test SearchBox.io's search features navigate to Manage Documents, create a new document and search it.

"Reindex All" at Manage Documents view will index all documents in database in one shot (Paging can be used if required). It will delete old index if exists, create a new index and it will index all documents at database with Bulk API.

Auto complete feature completes entered query after 3 characters according to name property.

Sample application is using Tire Ruby ElasticSearch client to integrate with SearchBox.io.

Local Setup

Sample app runs with no change at local environment with development profile.

Heroku Deployment

This sample can be deployed to Heroku with no change. With 2 steps application will be fully functional.

  • Migrate database with heroku run rake db:migrate

  • Install SearchBox ElasticSearch Addon.

Deploy sample application and experience real time search.

In Action

Demo on Heroku!

About

Rails, PostgreSQL, ElasticSearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 61.5%
  • HTML 26.7%
  • JavaScript 4.2%
  • Less 4.1%
  • CoffeeScript 1.8%
  • CSS 1.7%