Hey moono326,
Without your dataset, I can’t be sure, however I suspect that your ->key($personId)
does not actually match any rows. Note that the total_rows
field describes the total number of rows in your index, and not the total number of rows returned for the specific query.
Cheers, Brett