Skip to content

Commit

Permalink
Apply #117 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Biacode committed Oct 1, 2018
1 parent 75c4fe9 commit 6925a32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ allprojects {
}

group = 'org.biacode.escommons'
version = '6.4.1_0.1.3-SNAPSHOT'
version = '6.4.1_0.1.6-SNAPSHOT'
sourceCompatibility = 1.8

configurations.all {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ abstract class AbstractEsRepository<T : AbstractEsDocument> : EsRepository<T> {
}

override fun save(documents: List<T>, indexName: String): Boolean {
if (documents.isEmpty()) {
return false
}
val bulkRequest = BulkRequest()
documents.forEach {
bulkRequest.add(
Expand Down

0 comments on commit 6925a32

Please sign in to comment.