Search individual entities
This search endpoint can be used to retrieve a list of all full text indexed objects within the specified namespace. Multiple parameters can be used, separated by ampersands (&).
API format
GET /search/entities?schema.name={SCHEMA}&namespace={NAMESPACE}
GET /search/entities?schema.name={SCHEMA}&namespace={NAMESPACE}&s={SEARCH_TERM}
GET /search/entities?schema.name={SCHEMA}&namespace={NAMESPACE}&entityId={ENTITY_ID}
Parameters | Description |
---|---|
schema.name={SCHEMA} | (Required) Where {SCHEMA} contains the schema class value associated with the search objects. Currently, only _xdm.context.segmentdefinition is supported. |
namespace={NAMESPACE} | (Required) Where {NAMESPACE} contains the namespace you wish to search within. |
s={SEARCH_TERM} | (Optional) Where {SEARCH_TERM} contains a query that conforms to Microsoft’s implementation of Lucene’s search syntax. If no search term is specified, then all records associated with schema.name will be returned. A more detailed explanation can be found in the appendix of this document. |
entityId={ENTITY_ID} | (Optional) Limits your search to within the designated folder, specified with {ENTITY_ID}. |
limit={LIMIT} | (Optional) Where {LIMIT} represents the number of search results to return. The default value is 50. |
page={PAGE} | (Optional) Where {PAGE} represents the page number used for paginating results of the query searched. Please note that the page number starts at 0. |
Request
curl -X GET \
https://platform.adobe.io/data/core/ups/search/entities?schema.name=_xdm.context.segmentdefinition&namespace=AAMSegments \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'x-ups-search-version: 1.0'
Response
A successful response returns HTTP status 200 with results matching the search query.
{
"entities": [
{
"id": "1012667",
"base64EncodedSourceId": "RFVGamdydHpEdy01ZTE1ZGJlZGE4YjAxMzE4YWExZWY1MzM1",
"sourceId": "DUFjgrtzDw-5e15dbeda8b01318aa1ef533",
"isFolder": true,
"parentFolderId": "974139",
"name": "aam-47995 verification (100)"
},
{
"id": "14653311",
"base64EncodedSourceId": "REVGamduLVgzdy01ZTE2ZjRhNjc1ZDZhMDE4YThhZDM3NmY1",
"sourceId": "DEFjgn-X3w-5e16f4a675d6a018a8ad376f",
"isFolder": false,
"parentFolderId": "324050",
"name": "AAM - Heavy equipment",
"description": "AAM - Acme Equipment"
}
],
"page": {
"totalCount": 2,
"totalPages": 1,
"pageOffset": 0,
"pageSize": 10
},
"status": {
"message": "Success"
}
}
Get structural information about a search object
This search endpoint can be used to get the structural information about the requested search object.
API format
GET /search/taxonomy?schema.name={SCHEMA}&namespace={NAMESPACE}&entityId={ENTITY_ID}
Parameters | Description |
---|---|
schema.name={SCHEMA} | (Required) Where {SCHEMA} contains the schema class value associated with the search objects. Currently, only _xdm.context.segmentdefinition is supported. |
namespace={NAMESPACE} | (Required) Where {NAMESPACE} contains the namespace you wish to search within. |
entityId={ENTITY_ID} | (Required) The ID of the search object you want to get the structural information about, specified with {ENTITY_ID}. |
Request
curl -X GET \
https://platform.adobe.io/data/core/ups/search/taxonomy?schema.name=_xdm.context.segmentdefinition&namespace=AAMSegments&entityId=porsche11037 \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'Content-Type: application/json' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'x-ups-search-version: 1.0'
Response
A successful response returns HTTP status 200 with detailed structural information about the requested search object.
{
"taxonomy": [
{
"id": "0",
"base64EncodedSourceId": "RFVGZ01BLTVlNjgzMGZjMzk3YjQ1MThhYWExYTA4Zg2",
"name": "AAMTraits for Cars",
"parentFolderId": "root"
},
{
"id": "150561",
"base64EncodedSourceId": "RFVGamdpRk1BZy01ZTY4MzBmYzM5N2I0NTE4YWFhMWEwOGY1",
"name": "Fast Cars",
"parentFolderId": "carTraits"
},
{
"id": "porsche11037",
"base64EncodedSourceId": "REFGZ01CLTVlNjczMGZjMzk3YjQ1MThhZGIxYTA4Zg==",
"name": "Porsche",
"parentFolderId": "redCarsFolderId"
}
],
"status": {
"message": "Success"
}
}