- Home
- Resources
- SearchResource
Resource for endpoints that are forwarded to elasticsearch for performing searches
POST /elastic/{path}
Perform a search by forwarding the posted search request to elasticsearch under the given path.
The path will be prefixed with the index name.
Request Parameters
name |
type |
description |
default |
constraints |
path |
path |
path (e.g. /_search) |
|
regex: .* |
contenttags |
query |
true to add content tags to pages |
false |
boolean |
folder |
query |
true to add the folder to search hits |
false |
boolean |
langvars |
query |
true to add language variants to pages |
false |
boolean |
objecttags |
query |
true to add object tags to search hits |
false |
boolean |
privilegeMap |
query |
true to add privilege maps to folders |
false |
boolean |
privileges |
query |
true to add privilege information to folders |
false |
boolean |
template |
query |
true to add the template to pages |
false |
boolean |
translationstatus |
query |
true to add the translation status to pages |
false |
boolean |
Request Body
media type |
data type |
description |
application/json |
string
(JSON) |
request body |
Response Codes
code |
condition |
401 |
No valid sid and session secret cookie were provided. |
405 |
Feature elasticsearch is not activated. |
Response Body
media type |
data type |
description |
application/json |
object
(JSON) |
response |
Example
Request
POST /elastic/{path}
Content-Type: application/json
Accept: application/json
...
Response
HTTP/1.1 201 Created
Content-Type: application/json
...