Why is nothing returned from my GET /relations after a relations creation?

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,
POST https://<environment>.reltio.com/reltio/api/<MDM TenantId>/reindexRelations?distributed=true&taskPartsCount=4&forceIgnoreInStreaming=true&enableSeparateIndexing=true
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.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.