From 5e8bb34f362147b4a5e7056e425f55e6a6555beb Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 1 Dec 2015 15:33:13 +0000 Subject: [PATCH] Change the results dict to a list --- api/client-server/search.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/client-server/search.yaml b/api/client-server/search.yaml index a9eaa085..c0ca0016 100644 --- a/api/client-server/search.yaml +++ b/api/client-server/search.yaml @@ -160,10 +160,10 @@ paths: type: number description: Total number of results found results: - type: object + type: array title: Results description: Mapping of event_id to result. - additionalProperties: + items: type: object title: Result description: The result object. @@ -295,8 +295,8 @@ paths: } }, "count": 24, - "results": { - "$144429830826TWwbB:localhost": { + "results": [ + { "rank": 0.00424866, "result": { "age": 526228296, @@ -311,7 +311,7 @@ paths: "user_id": "@test:localhost" } } - } + ] } } }