Wild Cards in Searches and, more importantly, Caching (?) Results.

3 Comments

  • Greg Katechis
    Zendesk Developer Advocacy

    Hi SGL! Regarding the question about wildcard searches, this behavior is expected. Wildcard searches can be incredibly taxing on a system, so we limit the functionality to property keywords. If you wanted to search for a user with a specific name + the ability to wildcard a portion of it, you can reference this part of the above article and utilize the "name" property to do so.

    For the second question, how long is this behavior occurring after the user has been deleted? If the record was deleted within a couple of minutes, we may be returning cached results. Our cache is set to a max of 60 seconds, although there are some additional nuances that means that it is technically possible (although rare) that you may receive cached results for up to 3 minutes. Those additional nuances are why you may first see the correct results and then afterwards see a cached response...it is rare, but as you saw, definitely possible. We do not have a mechanism to bypass cached results.

    Let me know if you're seeing deleted/cached response after 3 minutes in your searches and we can investigate further what may be going on.

    1
  • SGL

    Thanks Greg,

    Ok, the wildcard thing is fine. But I forgot to mention that the sort elements of the query don't seem to work either. Is this also normal behaviour in this context?

    Also, I think that the cache is cleared after a minute or so. It can give different combinations of deleted users until it clears, but I think I can chalk that up as a quirk. I can probably put something in the code to mitigate the effect.

    Thanks,

    SGL.

    0
  • SGL

    I just want to add: when the mystery deleted users are returned by the API (apparently from the cache) they have id, name, organisation and role details, but their email addresses are null. So, I can filter them from the array of search results where the email is null.

    Thanks,

    SGL.

    1

Please sign in to leave a comment.

Powered by Zendesk