Search
Search
Retrieves a list of searchs result that match a query.
Request body
Key | Type | Description |
---|---|---|
query | string | The search query string. |
projectKey | string | Optional, if not using a bearer token. The project key associated to your project. If shared publicly, use the production key from a whitelisted domain. If not, for instance on localhost, use the development key. |
limit | number | The maximum number of results to return. Default: |
includeSectionContent | boolean | Whether to return the full content of matching sections, in addition to snippets. Default: |
Example request
Response
The response is of the form:
A search result is similar to a reference object used in completions references, with an additional field describing the match type:
Search results are ranked depending on the match type: higher weights are put on title matches, then section lead headings, and finally on content.