docs: update universal search response with start_frame/end_frame, limit param
This commit is contained in:
@@ -70,6 +70,7 @@ Multi-type BM25 full-text search across chunks, frames, and persons. Uses Postgr
|
||||
| `query` | string | Yes | — | Search text |
|
||||
| `file_uuid` | string | No | — | Restrict to specific file |
|
||||
| `types` | string[] | No | `["chunk","frame","person"]` | Search types |
|
||||
| `limit` | integer | No | 10 | Max results per type |
|
||||
| `page` | integer | No | 1 | Page number |
|
||||
| `page_size` | integer | No | 20 | Items per page |
|
||||
|
||||
@@ -89,11 +90,13 @@ curl -s -X POST "$API/api/v1/search/universal" \
|
||||
"results": [
|
||||
{
|
||||
"type": "chunk",
|
||||
"chunk_id": "uuid_1429",
|
||||
"chunk_id": "bd80fec92b0b6963d177a2c55bf713e2_2",
|
||||
"chunk_type": "story_child",
|
||||
"start_time": 429.16,
|
||||
"end_time": 430.5,
|
||||
"text": "You could have the stamps.",
|
||||
"start_frame": 5103,
|
||||
"end_frame": 5127,
|
||||
"start_time": 212.64,
|
||||
"end_time": 213.64,
|
||||
"text": "[213s-214s] Cary Grant: \"Olá!\"",
|
||||
"score": 0.9
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user