Skip to content

Commit

Permalink
Add name arguments to ElasticRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
dbulaja98 authored and drmarjanovic committed Nov 30, 2022
1 parent aeaf612 commit 0279f8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object ElasticRequest {
doc: A,
routing: Option[Routing] = None
): ElasticRequest[Unit] =
Create(index, Some(id), Document.from(doc), routing).map(_ => ())
Create(index = index, id = Some(id), document = Document.from(doc), routing = routing).map(_ => ())

def create[A: Schema](
index: IndexName,
Expand All @@ -47,7 +47,7 @@ object ElasticRequest {
doc: A,
routing: Option[Routing] = None
): ElasticRequest[Unit] =
CreateOrUpdate(index, id, Document.from(doc), routing)
CreateOrUpdate(index = index, id = id, document = Document.from(doc), routing = routing)

def createIndex(
name: IndexName,
Expand Down

0 comments on commit 0279f8a

Please sign in to comment.