KeywordSearchResponse
Response schema for keyword/faceted search.
results object[]required
List of matching documents
Entry ID
Dataset ID
MeiliSearch ranking score (0.0-1.0)
snippets object[]
Contextual snippets around matches
Source field name (e.g., 'text_content')
Snippet text with tags around matched terms
Terms that matched in this snippet
context objectrequired
Context information for this snippet
Boundary type used for snippet extraction
Possible values: [sentence, paragraph, section, cropped]
section object
Markdown section heading path (e.g., 'Background > Methods')
- string
- null
Character position of snippet start in full document
cropped_at object
How snippet was cropped: 'maxLength' if truncated, 'boundary' if natural boundary, null if complete
- string
- null
Possible values: [maxLength, boundary]
Snippet relevance score (0.0-1.0)
Possible values: >= 0 and <= 1
1Total number of matches in document
0True if more matches exist beyond max_snippets
falsemetadata object
Dynamic metadata fields from the dataset schema and core entry fields. Contains all entry metadata that fits within size thresholds. Fields exceeding 200 characters or arrays with more than 5 items are listed in truncated_fields instead.
Dynamic metadata fields from the dataset schema and core entry fields. Contains all entry metadata that fits within size thresholds. Fields exceeding 200 characters or arrays with more than 5 items are listed in truncated_fields instead.
Field names omitted from metadata due to size (strings > 200 chars, arrays > 5 items). Retrieve full values via GET /entries/{entry_id}.
Estimated total number of matching documents
query_info object
Query metadata (query, filters applied, execution time, etc.)
Query metadata (query, filters applied, execution time, etc.)
{
"results": [
{
"entry_id": 0,
"dataset_id": 0,
"score": 0,
"snippets": [
{
"field": "string",
"text": "string",
"matched_terms": [
"string"
],
"context": {
"type": "sentence",
"section": "string",
"offset": 0,
"cropped_at": "maxLength"
},
"relevance_score": 1
}
],
"match_count": 0,
"has_more": false,
"metadata": {},
"truncated_fields": [
"string"
]
}
],
"total": 0,
"query_info": {}
}