vtx.GetSearchResult
This job performs a full-text search via the VTX engine and returns hits with score, optional preview and optional facet aggregations. Request and response are exchanged as JSON.
|
This job is not described in the official enaio® documentation but is listed as known in the VTX engine overview’s "Undocumented Endpoints" section. This description was reconstructed from the call code of the |
1. Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
|
INT |
Yes |
Reserved; always pass |
|
BASE64 |
Yes |
Search request as a UTF-8-encoded JSON document (schema below). |
1.1. Query JSON schema
{
"searchString": "<search term>",
"maxHits": 50,
"restrictions": {
"objectTypeIds": [<int>, ...],
"prefetchedIds": [<int>, ...],
"locations": [
{ "objectTypeId": <int>, "objectId": <int> },
...
]
},
"flags": {
"includePreview": true,
"includeFacets": true
},
"aggregations": {
"filter": {
"<facetKey>": ["<value>", ...]
}
},
"queryCatalogueLocale": "<locale tag, e.g. de_DE>"
}
| Field | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
Search term; must not be empty. |
|
int |
Yes |
Upper bound of hits; call-code default |
|
int[] |
Yes |
List of allowed object types; at least one entry. |
|
int[] |
No |
Pre-restricted object IDs (re-ranking instead of search). |
|
obj[] |
No |
List of { |
|
bool |
No |
Generate snippet previews. |
|
bool |
No |
Compute facet aggregations alongside hits. |
|
map |
No |
Active facet filters per facet key. |
|
string |
No |
Language for catalog lookups. |
2. Output Parameters
| Name | Type | Dependency | Description |
|---|---|---|---|
|
BASE64 |
— |
Response as UTF-8-encoded JSON. |
4. See Also
-
vtx.GetAutoCompleteResult — live suggestions for the search input
-
vtx.OpenObjectQuery — alternative request variant via object selector
-
vtx.IsFacetSearchEnabled/vtx.IsPreviewEnabled— feature flag queries (likewise officially undocumented)