Sometimes I get a key error on facets, I could not reproduce it. I am wondering if this is something normal and if you know in what condition it could happen ?
results = index.search("", {"facets": "*"})
facets = results['facets'] # <== sometimes the key is not present