check for object id when term is numeric

I was checking for the absence of '.', which indicates accession number.
But search terms don't have '.', and definitely aren't object ids.
mention searches with multiple words
Env variable for local artsmia/collection