without testing, the original posted link should work, forgot about the pass through after LL locked down search access from inworld. though through my original testing, having a locked or no profile on record doesn't seem to prevent pulling a page for that av... but something does, as there were a few I found that had open and filled profiles (as verified both inworld, and by grabbing the page by their key) that didn't pop... my guess then (and it still stands) is that it's an issue of indexing. some just aren't... yet?
OP's link posted solution is probably inferior to w-hat right now, but I'm not about to scratch at it right now.. someone else wants to, i'm sure plenty of others would appreciate any findings.
ETA: the posted original link doesn't include some of the advanced search words, possibly it can't, I don't remember all of them, but intitle:XXX was one of the more useful... I believe it was DayOh that posted about the extended search field originally (which IIRC are based on googles)
update: because it bugged me not to remember, hits was the demo link that Day Oh provided oh so long ago

valid categories are similar or the same as inworld search, and some are exposed in the code of the web search portal on secondlife.com
All_Web (well all secondlife anyways ::eyeroll:: )
Classifieds
Events
Groups
People
Places (both regions and parcels are under this)
Wiki
secondlife_com (the webside)
theres a flag for mature content too, but I can't remember it offhand
IIRC there's a specific format that can be used to paste a link into chat that can be clicked to pop the relevant search page IN the search window too, possibly useful for group invites