JSON Format
Basic Structure
A Search dictionary is an object with optional keys:Component Schemas
where
where uses the Where Filter dictionary schema.
rank
rank must be a dictionary with exactly one top-level operator.
| Operator | Format |
|---|---|
$sum | ["RankExpr", "RankExpr", "... (min 2)"] |
$mul | ["RankExpr", "RankExpr", "... (min 2)"] |
$max | ["RankExpr", "RankExpr", "... (min 2)"] |
$min | ["RankExpr", "RankExpr", "... (min 2)"] |
$sub (l-r) | { "left": "RankExpr", "right": "RankExpr" } |
$div (l/r) | { "left": "RankExpr", "right": "RankExpr" } |
$abs | "RankExpr" |
$exp (ex) | "RankExpr" |
$log (Natural logarithm) | "RankExpr" |
group_by
group_by can be omitted or provided as a dictionary with both keys and
aggregate.
limit
Controls pagination.
select
Controls returned fields. Use built-ins (#id, #document, #embedding,
#metadata, #score) and/or metadata field names.