Mask algolia results (following tinder like model)

Hey there again,

I have a set of results like the one below

[
    {
        "name" : "John Doe",
        "skills" : [ "Vue", "Golang", "React", ... ]
    },
    {
        "name": "Don Joe",
        "skills" : [ "Vue", "Golang", "React", ... ]
    }
]

I would like to mask the output as follows before showing to the user.

[
    {
        "name" : "J******e",
        "skills" : [ "Vue", "Golang", "React", ... ]
    },
    {
        "name": "D******e",
        "skills" : [ "Vue", "Golang", "React", ... ]
    }
]

Is it possible directly in algolia or I have to pass through my servers to do that?

Hi @devops2,

You can do this on your server either before you index or after you retrieve results from one of the API clients. You can also do this on your frontend if you are using instantsearch with the ‘transformItems’ option.