This example illustrates basic search features of SearchBox.io (ElasticSearch as service).
Sample application is using Elastisch Clojure ElasticSearch client to integrate with SearchBox.io.
To create initial index and sample data click Create Sample Index&Data! (2 sample documents will be created.)
Type '*' or 'tweety' or 'tom' to searchbox at top of right corner and hit enter for sample search results.
To run example in your local environment with a local ElasticSearch instance, change connection string with local url string inside controllers/search.clj and controllers/indexer.clj to
(esr/connect! "http://localhost:9200")
Ensure Leiningen 2 is installed and run with below command;
lein run clojure-elastisch-sample.web
This sample can be deployed to Heroku with no change.
- Install SearchBox ElasticSearch Addon
Deploy sample application and experience real time search.