Skip to content

Commit

Permalink
Add long, double to field type (#217)
Browse files Browse the repository at this point in the history
* Add long and double support to structured field

* Bump version to 3.1.0
  • Loading branch information
wanliAlex authored Feb 8, 2024
1 parent afc1839 commit e718e08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"tox"
],
name="marqo",
version="3.0.1",
version="3.1.0",
author="marqo org",
author_email="org@marqo.io",
description="Tensor search for humans",
Expand Down
4 changes: 4 additions & 0 deletions src/marqo/models/marqo_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ class FieldType(str, Enum):
Text = 'text'
Bool = 'bool'
Int = 'int'
Long = 'long'
Float = 'float'
Double = 'double'
ArrayText = 'array<text>'
ArrayInt = 'array<int>'
ArrayLong = 'array<long>'
ArrayFloat = 'array<float>'
ArrayDouble = 'array<double>'
ImagePointer = 'image_pointer'
MultimodalCombination = 'multimodal_combination'

Expand Down
2 changes: 1 addition & 1 deletion tests/v2_tests/test_add_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,4 +727,4 @@ def test_add_empty_docs_batched(self):

res = self.client.index(test_index_name).add_documents(documents=[], client_batch_size=5,
tensor_fields="field a")
assert res == []
assert res == []

0 comments on commit e718e08

Please sign in to comment.