Skip to content

Commit

Permalink
Add default routing for create with document id
Browse files Browse the repository at this point in the history
  • Loading branch information
dbulaja98 committed Nov 28, 2022
1 parent d3bcb82 commit 62d35c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object ElasticRequest {
index: IndexName,
id: DocumentId,
doc: A,
routing: Option[Routing]
routing: Option[Routing] = None
): ElasticRequest[Unit] =
Create(index, Some(id), Document.from(doc), routing)

Expand Down

0 comments on commit 62d35c1

Please sign in to comment.