/django-haystack-sample

Django ElasticSearch Sample Application

Primary LanguagePython

Searchly.com Sample Django Haystack Application.

This example illustrates basic search features of Searchly.com (former Searchbox.io) (Search as a service powered by ElasticSearch).

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

To test Searchly's search features, login as admin, create a new document and search it.

Sample application is using Haystack moduler search for Django and pyelasticsearch Python ElasticSearch client to integrate with Searchly.

Local Setup

Sample application requires a PostgreSQL database up and change 'URL': os.environ['SEARCHBOX_URL'], to 'URL': 'http://localhost:9200', at settings.py pointing to your running ElasticSearch instance.

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 python manage.py syncdb

  • Install Searchly ElasticSearch Addon.

Deploy sample application and experience real time search.