Why are we finding a match for first name when I am only searching for OV value = true?

Question

Could you please check if 'search by OV' is working as expected in the production environment?
I created a search query and I see the unexpected result.   The first name "daniela" contains an OV value of false.

mceclip0.png

Contents of name in 10tG6Mun record.

 {
"type": "configuration/entityTypes/HCP/attributes/FirstName",
"ov": false,
"value": "daniela",
"uri": "entities/10tG6Mun/attributes/FirstName/1hyzOnR0e"
            },

"ID": [
                        {
"type": "configuration/entityTypes/HCP/attributes/Identifiers/attributes/ID",
"ov": true,
"value": "IT-128309HCP",
"uri": "entities/10tG6Mun/attributes/Identifiers/16lOGNOih/ID/16lOGNbVT"
                        }
                    ]

Answer

The following API was submitted by the Advanced Search UI dialog

GET https://<envirnoment>.reltio.com/reltio/api/<tenantId>/entities?activeness=active&filter=(equals(type,'configuration/entityTypes/HCP') and (equals(attributes.FirstName,'daniela') and equals(attributes.Identifiers.ID,'IT-128309HCP'))) and equals(type,'configuration/entityTypes/HCP')&max=25&offset=0&options=searchByOv%2CovOnly&scoreEnabled=false

The response body contains the following for FIRSTNAME

"FirstName": [
                {
"type": "configuration/entityTypes/HCP/attributes/FirstName",
"ov": true,
"value": "DANIELA",
"uri": "entities/10tG6Mun/attributes/FirstName/1XSUBDnJZ"
                }
            ],

If you read the documentation in  https://docs.reltio.com/entitiesapi/entitiesfiltering.html, you will see that equals(property, value): ignores the case of the conditional values.

We will notice that to consider the case in question we need to use equalsCaseSensitive filter condition. 

 

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

Comments

0 comments

Please sign in to leave a comment.