Building a Search Request
How to build a POST /api/v1/search request — the top-level parameters, the search array element types, bool contexts and boost, and aggregations (facets).
{
"objecttypes": ["person"],
"format": "standard",
"offset": 0,
"limit": 25,
"generate_rights": true,
"search": [
{ "type": "match", "mode": "fulltext", "string": "lovelace", "bool": "must" },
{ "type": "range", "field": "person.born", "from": "1800", "to": "1900" }
],
"sort": [{ "field": "_score", "order": "desc" }],
"aggregations": {
"types": { "type": "term", "field": "_objecttype", "limit": 10 }
}
}Top-level parameters
Parameter
Type
Purpose
The search array
search arraybool contexts
bool contextsboost
boostAggregations (facets)
Other entry points
See also
Last updated