Hey friends!
I’m trying to filter some search results, I already got the Identity that I wanted, but just wanna one specific account from this Identity, my main reason for this search is get some information from this specific account, but I tried to use filter without success… and someone give me a tip?
Search Payload
{
"indices": [
"identities"
],
"query": {
"query": "11111111111",
"fields": [
"attributes.cpf"
]
},
"queryResultFilter": {
"includes": [
"id",
"attributes.cpf",
"accounts.name",
"accounts.accountId",
"accounts.source.name"
]
},
"filters": {
"source.name": {
"type": "TERMS",
"terms": [
"UMBRELLA"
],
"exclude": true
}
}
}
Result that I got…
[
{
"attributes": {
"cpf": "11111111111"
},
"id": "9aa8ed4e1aee429e98dd354c0a0fc6af",
"accounts": [
{
"accountId": "11111111111",
"name": "USER.LOGIN",
"source": {
"name": "UMBRELLA"
}
},
{
"accountId": "000000",
"name": "NAME OF USER",
"source": {
"name": "SAP Success Factors"
}
},
{
"accountId": "NAME OF USER",
"name": "NAME OF USER",
"source": {
"name": "IdentityNow"
}
}
],
"_type": "identity",
"type": "identity",
"_version": "v7"
}
]
Result that I expect…
[
{
"attributes": {
"cpf": "11111111111"
},
"id": "9aa8ed4e1aee429e98dd354c0a0fc6af",
"accounts": [
{
"accountId": "11111111111",
"name": "USER.LOGIN",
"source": {
"name": "UMBRELLA"
}
}
],
"_type": "identity",
"type": "identity",
"_version": "v7"
}
]