Merge pull request #1278 from matrix-org/t3chguy/search_docs

Fix two issues with /search docs
pull/977/head
Richard van der Hoff 7 years ago committed by GitHub
commit 92cf91dc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,16 +53,16 @@ paths:
"keys": [ "keys": [
"content.body" "content.body"
], ],
"search_term": "martians and men" "search_term": "martians and men",
} "order_by": "recent",
}, "groupings": {
"order_by": "recent", "group_by": [
"groupings": { {
"group_by": [ "key": "room_id"
{ }
"key": "room_id" ]
} }
] }
} }
} }
properties: properties:
@ -181,6 +181,12 @@ paths:
count: count:
type: number type: number
description: An approximate count of the total number of results found. description: An approximate count of the total number of results found.
highlights:
type: array
title: Highlights
description: List of words which should be highlighted, useful for stemming which may change the query terms.
items:
type: string
results: results:
type: array type: array
title: Results title: Results
@ -318,6 +324,10 @@ paths:
} }
} }
}, },
"highlights": [
"martians",
"men"
],
"next_batch": "5FdgFsd234dfgsdfFD", "next_batch": "5FdgFsd234dfgsdfFD",
"count": 1224, "count": 1224,
"results": [ "results": [

@ -54,6 +54,8 @@ Unreleased changes
(`#1264 <https://github.com/matrix-org/matrix-doc/pull/1264>`_). (`#1264 <https://github.com/matrix-org/matrix-doc/pull/1264>`_).
- Document ``/logout/all`` endpoint - Document ``/logout/all`` endpoint
(`#1263 <https://github.com/matrix-org/matrix-doc/pull/1263>`_). (`#1263 <https://github.com/matrix-org/matrix-doc/pull/1263>`_).
- Document `highlights` field in /search response
(`#1274 <https://github.com/matrix-org/matrix-doc/pull/1274>`_).
r0.3.0 r0.3.0
====== ======

Loading…
Cancel
Save