Skip to main content

Elasticsearch Search

Searches all documents at the configured index. You should bind this action to a route i.e. GET /document. The endpoint supports the following query parameters:

ParameterDescription
startIndexThe start index
queryThe search query i.e. ?query[title]=foo

Response

{
"totalResults": 2,
"itemsPerPage": 16,
"startIndex": 0,
"entry": [
{
"title": "foo bar",
"description": "lorem ipsum",
"insert_date": "2022-03-13T22:08:20+00:00"
},
{
"id": 1,
"title": "hello world",
"description": "lorem ipsum",
"insert_date": "2022-03-13T22:07:53+00:00"
}
]
}