diff options
author | tmartins <thigm85@gmail.com> | 2020-08-20 11:23:32 +0200 |
---|---|---|
committer | tmartins <thigm85@gmail.com> | 2020-08-20 11:23:32 +0200 |
commit | 0cec726d5861215529e10cb3d0795ca4b5111604 (patch) | |
tree | cc30bf1fe46342c1db257a540c732efbed095043 /python | |
parent | c95df5be4b49c9734a8b745974e5c864432e952e (diff) |
add vespa format
Diffstat (limited to 'python')
-rw-r--r-- | python/vespa/vespa/application.py | 3 |
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( |