Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbanda committed Jul 17, 2019
1 parent 39ec988 commit bed43f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
@@ -1,4 +1,4 @@
# InCal Access ElasticSearch [![version](https://img.shields.io/badge/version-0.2.1-green.svg)](https://in-cal.org) [![License](https://img.shields.io/badge/License-Apache%202.0-lightgrey.svg)](https://www.apache.org/licenses/LICENSE-2.0)
# InCal Access ElasticSearch [![version](https://img.shields.io/badge/version-0.2.2-green.svg)](https://in-cal.org) [![License](https://img.shields.io/badge/License-Apache%202.0-lightgrey.svg)](https://www.apache.org/licenses/LICENSE-2.0)

This is a convenient repo-like access layer for Elastic Search based on [Elastic4S](https://github.com/sksamuel/elastic4s) library.

Expand All @@ -7,7 +7,7 @@ This is a convenient repo-like access layer for Elastic Search based on [Elastic
All you need is **Scala 2.11**. To pull the library you have to add the following dependency to *build.sbt*

```
"org.in-cal" %% "incal-access-elastic" % "0.2.1"
"org.in-cal" %% "incal-access-elastic" % "0.2.2"
```

or to *pom.xml* (if you use maven)
Expand All @@ -16,7 +16,7 @@ or to *pom.xml* (if you use maven)
<dependency>
<groupId>org.in-cal</groupId>
<artifactId>incal-access-elastic_2.11</artifactId>
<version>0.2.1</version>
<version>0.2.2</version>
</dependency>
```

Expand All @@ -28,4 +28,5 @@ Elastic Search **5.6.10** is required. Any other version might not work correctl
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.10.deb
sudo dpkg -i elasticsearch-5.6.10.deb
sudo systemctl enable elasticsearch.service
sudo service elasticsearch start
```
4 changes: 2 additions & 2 deletions build.sbt
Expand Up @@ -2,7 +2,7 @@ organization := "org.in-cal"

name := "incal-access-elastic"

version := "0.2.1"
version := "0.2.2"

description := "Provides a convenient access layer for Elastic Search based on Elastic4S library."

Expand All @@ -17,7 +17,7 @@ libraryDependencies ++= Seq(
"com.sksamuel.elastic4s" %% "elastic4s-http" % esVersion,
"com.sksamuel.elastic4s" %% "elastic4s-http-streams" % esVersion,
"javax.inject" % "javax.inject" % "1",
"org.in-cal" %% "incal-core" % "0.2.0",
"org.in-cal" %% "incal-core" % "0.2.1",
"org.apache.commons" % "commons-lang3" % "3.5",
"org.slf4j" % "slf4j-api" % "1.7.21"
)
Expand Down
Expand Up @@ -13,6 +13,7 @@ import scala.concurrent.Await.result
import java.util.Date

import akka.actor.ActorSystem
import akka.stream.Materializer
import akka.stream.scaladsl.Source
import com.sksamuel.elastic4s.{IndexAndType, Indexes}
import com.sksamuel.elastic4s.admin.IndexExistsDefinition
Expand Down Expand Up @@ -102,7 +103,8 @@ abstract class ElasticAsyncReadonlyRepo[E, ID](
sort: Seq[Sort],
projection: Traversable[String],
limit: Option[Int],
skip: Option[Int]
skip: Option[Int])(
implicit materializer: Materializer
): Future[Source[E, _]] = {
val scrollLimit = limit.getOrElse(setting.scrollBatchSize)

Expand Down

0 comments on commit bed43f2

Please sign in to comment.