I haven’t had time recently to write blogs of my own, but I saw this blog and I think it’s really helpful for those who are interested in doing ElasticSearch, so I’m going to share it on my own blog. This is the first time I’m doing a reblog.
Lucene is just a library and to leverage its power you need to use Java. Integrating Lucene directly with your application is a very complex task.
Elasticsearch uses the indexing and searching capabilities of Lucene but hides the complexities behind a simple RESTful API.
In this post we will learn to perform basic CRUD operations using Elasticsearch transport client in Scala with sbt as our build-tool.
Let us start by downloading Elasticsearch from here and unzipping it.
Execute the following command to run Elasticsearch in foreground:
Test it out by opening another terminal window and running the following:
To start with the coding part, create a new sbt project and add the following dependency in the build.sbt file.
Next, we need to create a…
View original post 279 more words