Skip to content

Commit

Permalink
Made dims option of DenseVector optional (#1776) (#1795)
Browse files Browse the repository at this point in the history
(cherry picked from commit cb99fd5)

Co-authored-by: Miguel Grinberg <miguel.grinberg@gmail.com>
  • Loading branch information
github-actions[bot] and miguelgrinberg committed Apr 29, 2024
1 parent 047e5ea commit e30129d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch_dsl/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ def _deserialize(self, data):
class DenseVector(Float):
name = "dense_vector"

def __init__(self, dims, **kwargs):
def __init__(self, **kwargs):
kwargs["multi"] = True
super().__init__(dims=dims, **kwargs)
super().__init__(**kwargs)


class SparseVector(Field):
Expand Down

0 comments on commit e30129d

Please sign in to comment.