See the documentation for html:note-anchor and url:coerce-url-string using the documentation form. If you don't already have the arguments for the search url in the url, you'll need to concatenate them onto the search parent before passing them to note-anchor, which accepts an interned URL or url-string as the reference argument.