Skip to content

Commit

Permalink
feat: new parameters for search operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal authored Aug 28, 2024
1 parent 6310b3f commit cb88234
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions gpt-schema.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ paths:
application/json:
schema:
type: object
additionalProperties: true
properties:
query:
type: object
Expand All @@ -145,6 +146,43 @@ paths:
type: integer
description: Number of search results to return
example: 5
sort:
type: array
description: Sort order for results
items:
type: object
properties:
field_name:
type: string
order:
type: string
enum:
- asc
- desc
from:
type: integer
description: Starting point for results (for pagination)
example: 0
_source:
type: array
description: Specifies which fields to return
items:
type: string
highlight:
type: object
description: Highlighting options for search results
properties:
fields:
type: object
aggs:
type: object
description: Aggregations for the search results
additionalProperties:
type: object
track_total_hits:
type: boolean
description: Whether to track the total number of hits
example: true
required:
- query
- size
Expand Down

0 comments on commit cb88234

Please sign in to comment.