Skip to content

Commit

Permalink
Merge pull request #286 from an-tex/obey-refreshpolicy
Browse files Browse the repository at this point in the history
obey refresh policy for bulkindex
  • Loading branch information
an-tex authored Nov 15, 2023
2 parents 100b318 + 75bb974 commit b5cce60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastic/core/src/main/scala/Index.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ abstract class Index(
}

def bulkIndexRequest(latests: Seq[Index.this.Latest]) =
bulk(latests.map(indexRequest))
bulk(latests.map(indexRequest)) refresh indexSetup.refreshPolicy

def get(id: Id): Future[Option[Latest]] =
execute(getRequest(id)).map(_.toOpt[Latest])
Expand Down

0 comments on commit b5cce60

Please sign in to comment.