So I guess searchindex() is deprecated. I didn’t know.
findfirst() would seem to do the job.
Thank you