Skip to content

agindre/scala-lift-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SearchBox.io Sample Scala Lift Application.

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

Sample application is using Jest Java/Scala ElasticSearch client to integrate with SearchBox.io.

To create initial index and sample data click "Create Documents" (2 sample articles will be created.)

To test search; enter "starcraft", "warcraft" or "*" to search box at top right and hit enter.

Using with SearchBox.io

  • Sign Up and get your API-KEY from here.
  • Replace "YOUR-API-KEY-HERE" with your API-KEY at DependencyFactory.scala

Heroku Deployment

This sample can be deployed to Heroku with no change.

  • Install SearchBox ElasticSearch Addon

  • Deploy sample application and experience real time search.

Local Setup

  • Change connection string at DependencyFactory.scala
    • from
          servers.add(Properties.envOrElse("SEARCHBOX_URL", "https://api.searchbox.io/api-key/YOUR-API-KEY-HERE"))
      
    • to
          servers.add("http://localhost:9200")
      

To run example in your local environment with a local ElasticSearch instance via maven;

    mvn jetty:run

About

Scala Lift Sample for Searchbox.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages