Question
We created a relations
POST /reltio/api/<tenantId>/relations?relationType=HouseholdToHouseholdExtension
Request Body
[
{
"type": "configuration/relationTypes/HouseholdToHouseholdExtension",
"startObject": {
"crosswalks": [
{
"type": "configuration/sources/CDH",
"value": "H6747843"
}
]
},
"endObject": {
"crosswalks": [
{
"type": "configuration/sources/CDH",
"value": "HE6747843"
}
]
},
"crosswalks": [
{
"type": "configuration/sources/CDH",
"value": "REL_H6747843_HE6747843"
}
]
}
]
However, no relations are returned when I use this API.
GET /reltio/api/<temamtId>/relations?filter=equals,(type,'/configuration/relationTypes/HholdMember') and equals(startObject,'entities/uFqXcT1')&scoreEnabled=false&options=ovOnly
Answer
- Check the physical tenant configuration for
"indexRelations": false,
- Change this setting to
"indexRelations": true,
- After that property has been changed reindex all relations (https://docs.reltio.com/en/explore/get-going-with-apis-and-rocs-utilities/reltio-rest-apis/engage-apis/tasks-api/reindex-relations-task)
POST https://<environment>.reltio.com/reltio/api/<MDM TenantId>/reindexRelations?distributed=true&taskPartsCount=4&forceIgnoreInStreaming=true&enableSeparateIndexing=true
- If you are still having a problem finding created relations, perform the below consistency task (see https://docs.reltio.com/en/explore/get-going-with-apis-and-rocs-utilities/reltio-rest-apis/engage-apis/tasks-api/relations-consistency-task)
POST {ApplicationURL}/api/{tenantId}/relationsConsistencyCheck
NOTE: the Elastic Search architecture does not have an SLA, so a delay is expected. Elastic Search has a refresh period of 30 seconds, so we recommend that you delay your search after creation to two minutes in your script.
Comments
Please sign in to leave a comment.