Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 27 additions & 16 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2314,25 +2314,32 @@ components:
items:
$ref: "#/components/schemas/SearchResultHit"
request_params:
$ref: "#/components/schemas/SearchRequestParams"
conversation:
$ref: "#/components/schemas/SearchResultConversation"
union_request_params:
type: array
description: Returned only for union query response.
items:
$ref: "#/components/schemas/SearchRequestParams"
SearchRequestParams:
type: object
required:
- collection_name
- q
- per_page
properties:
collection_name:
type: string
q:
type: string
per_page:
type: integer
voice_query:
type: object
required:
- collection_name
- q
- per_page
properties:
collection_name:
transcribed_query:
type: string
q:
type: string
per_page:
type: integer
voice_query:
type: object
properties:
transcribed_query:
type: string
conversation:
$ref: "#/components/schemas/SearchResultConversation"
SearchResultConversation:
type: object
required:
Expand Down Expand Up @@ -2415,6 +2422,9 @@ components:
type: number
format: float
description: Distance between the query vector and matching document's vector value
search_index:
type: integer
description: Returned only for union query response. Indicates the index of the query which this document matched to.
example:
highlights:
company_name:
Expand Down Expand Up @@ -3530,6 +3540,7 @@ components:
properties:
union:
type: boolean
default: false
description: When true, merges the search results from each search query into a single ordered set of hits.
searches:
type: array
Expand Down