I have just read (in Polish) a 1985 crime novel, by Norwegian author Gert Nygårdshaug. It seems, that it wasn't translated to English. Its original title is Honningkrukken.
There's a tiny end-story note that main character took a bottle of liquid star anise (Illicium verum) and, when running away from dogs hunting him, he spread this spice around his path.
The narrator explained, that every dog is extremely sensitive to the smell of star anise. The desire to sniff any item, that smells like star anise, is so strong, according to book author, that every dog, even hunting one, will drop their hunting or prey and immediately stop at that place.
I'm an extreme newbie to this area, but that sounds like an absurd to me. Mentioned book is filled with similar mistakes and strange theories, so I'd like to verify this one.
The novel was generally very poorly written and is full of obvious mistakes or obviously incorrect assumptions, so above may be a complete mistake that I'd like to clarify.