I have a doubt regarding deduplication. I have a set of data
[
{
"shopId": 1,
"tags": [
"shirt",
"textile"
],
"status": "active"
},
{
"shopId": 1,
"tags": [
"pants"
],
"status": "active"
},
{
"shopId": 1,
"tags": [
"socks"
],
"status": "deleted"
}
]
I have enabled the distinct feature with shopId
attribute. I need help on the following.
- If i searched one of the tags. Eg:
Textile, pants
The result should appear and should be unique toshopId
- It should filter out the
deleted
status item. it is sorted by created date and for say if the itemsock
was the most recent data and its status isdeleted
. The data should show the next recent data which ispants