Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Super Search sees '//' everywhere?

by kyle (Abbot)
on May 10, 2008 at 03:17 UTC ( #685828=monkdiscuss: print w/ replies, xml ) Need Help??

In Re: Checking the value of an undefined value, I wrote that the (new in Perl 5.10) "//" operator would do what the OP wanted. Afterward, I thought I'd written something like that before, so I swung over to Super Search to find it. I entered "//" for the text and "kyle" in the author box and hit search.

This seems to find most (but not all) of my nodes.

I found what I was looking for by searching for "5.10" (because I always point out that // is a 5.10 feature when I mention it), but I'm wondering why the original search (for "//") didn't work.

As I was writing this, I think I figured it out. It's finding the "//" in "[doc://defined]", for example.

I wonder if it would be worthwhile to have a checkbox to search for nodes "as rendered" rather than "as entered". I might even suggest making that the default, but that might be surprising to someone used to the old behavior.

Comment on Super Search sees '//' everywhere?
Select or Download Code
Re: Super Search sees '//' everywhere?
by parv (Priest) on May 10, 2008 at 04:35 UTC

    Thought never occurred to me that a "super search" search would be searching for literal text unless asked.

    On a related note, the (super) search interface page is overly long with numerous options. (I am aware of the "what you do not use might be used by somebody else" part.) Only if there were a way to distort it per my own criteria (in any browser) ... hmmm ...

      Only if there were a way to distort it per my own criteria (in any browser) ... hmmm ...
      I think you can start from here: Free Nodelet Hack: Mini Super Search

      Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Re: Super Search sees '//' everywhere? (consntraints)
by tye (Cardinal) on May 10, 2008 at 08:29 UTC
    I wonder if it would be worthwhile to have a checkbox to search for nodes "as rendered" rather than "as entered". I might even suggest making that the default, but that might be surprising to someone used to the old behavior.

    That would require infrastructure to cache "as rendered" versions of nodes in the database so that they can be searched for. And you'd still probably very often find "//" as that is extremely common in HTML.

    Read some of the previous discussions of super search to better understand the rather tight and unusual constraints it has.

    - tye        

      Hmm. But how often does "://" come up in Perl code? Would it be possible to have Super Search exlude "://" results by default when someone searches for "//"?

        Not unless you come up with the SQL to do that (I'm pretty sure it isn't possible). Note that using regexes (RLIKE) is not an option due to their severe performance penalty (as noted in previous discussions).

        - tye        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://685828]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2014-12-26 11:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls