I’m exploring search v3 api and I’m using an OR filter for email and name, all is well but I was just wondering if there’s a filter or sort for my preferred search results.
{
"filterGroups": [
{
"filters": [
{
"propertyName": "email",
"operator": "EQ",
"value": "mhand@bxala.com"
}
]
},
{
"filters": [
{
"propertyName": "firstname",
"operator": "EQ",
"value": "larry"
},
{
"propertyName": "lastname",
"operator": "EQ",
"value": "masi"
}
]
}
]
}
For example, if my search would return a result from email, and another for the firstname and lastname, can I sort the order of results being the one matching the email first?
{
"total": 2,
"results": [
{
"id": "29335701",
"properties": {
"createdate": "2020-04-22T19:31:29.675Z",
"email": "larry@masimarketing.com",
"firstname": "Larry",
"hs_object_id": "29335701",
"lastmodifieddate": "2020-04-22T20:05:31.543Z",
"lastname": "Masi"
},
"createdAt": "2020-04-22T19:31:29.675Z",
"updatedAt": "2020-04-22T20:05:31.543Z",
"archived": false
},
{
"id": "25784751",
"properties": {
"createdate": "2020-01-13T17:41:05.905Z",
"email": "mhand@bxala.com",
"firstname": "Michael",
"hs_object_id": "25784751",
"lastmodifieddate": "2020-04-22T21:57:46.739Z",
"lastname": "Hand"
},
"createdAt": "2020-01-13T17:41:05.905Z",
"updatedAt": "2020-04-22T21:57:46.739Z",
"archived": false
}
]
}