aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authortmartins <thigm85@gmail.com>2020-08-20 11:23:32 +0200
committertmartins <thigm85@gmail.com>2020-08-20 11:23:32 +0200
commit0cec726d5861215529e10cb3d0795ca4b5111604 (patch)
treecc30bf1fe46342c1db257a540c732efbed095043 /python
parentc95df5be4b49c9734a8b745974e5c864432e952e (diff)
add vespa format
Diffstat (limited to 'python')
-rw-r--r--python/vespa/vespa/application.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/vespa/vespa/application.py b/python/vespa/vespa/application.py
index 9dc5cd10d9a..6c8c86d9b07 100644
--- a/python/vespa/vespa/application.py
+++ b/python/vespa/vespa/application.py
@@ -89,7 +89,8 @@ class Vespa(object):
end_point = "{}/document/v1/{}/{}/docid/{}".format(
self.end_point, schema, schema, str(data_id)
)
- response = post(end_point, json=fields)
+ vespa_format = {"fields": fields}
+ response = post(end_point, json=vespa_format)
return response
def collect_training_data_point(