Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re3: new super search

by blakem (Monsignor)
on Oct 08, 2002 at 21:36 UTC ( [id://203765]=note: print w/replies, xml ) Need Help??


in reply to •Re: Re: new super search
in thread new super search

Seems to work for me... Do you see this text on the results page?
where any text contains " on"
written by any of merlyn
I checked the first ten results and they all contained the word on. What results did you get that matched "question" or "one"?

-Blake

Replies are listed 'Best First'.
•Re: Re3: new super search
by merlyn (Sage) on Oct 08, 2002 at 21:48 UTC
    No, I can't get it to do that. I set "-on-" and typed "-" in the box next to "as spaces", and tried both settings for the radio button (which I still don't exactly understand, even though tye referenced a somewhat useless node about it).

    -- Randal L. Schwartz, Perl hacker

      and typed "-" in the box next to "as spaces"

      There is no "as spaces" on super search. There is a field for you to specify what string you want to use as a separator between search terms for which the "default is spaces". So type space, then oh, then en, then space (" on ") as your search term and set the delimter to be anything other than space, oh, or en. Or use the regex "\bon\B".

      Yes, I've tested both of these suggestions.

              - tye (or sometimes "Tod")
        Or use the regex "\bon\B".

        Hmm, that does 'work'. But what definition of regex are you using? In perlre, it says '\b' should match a word boundary transition, whether its from a word to a non-word or a non-word to a word character transition. So, '\b' should match "abc def ghi" (among other places) both before the "d" and after the "f". '\B' would match the places in between the letters, like between "a" and "b".

        Update:Ahh, ok. it all makes sense now :-)

      Think split not tr. If you wanted to search for the following terms:

      fred flinstone
      barney rubble
      dino

      You would enter it as:

      fred flinstone;barney rubble;dino
      separator: ;
      NOT
      fred_flinstone barney_rubble dino
      separator: _

      -Blake

      ...I set "-on-" and typed "-"...

      He said to put a space between the letters and the delimiters. Of course, then you wouldn't get things that begin or end with "on"...and I can't get regexes to work either...

        In the simple search (at the top of every page here), when you search for a single letter (say "x"), it searches for records where ' '+title+' ' like '% x %', which allows the space-separated "x" to appear at the front or back of the title without having to incur the CPU penalty for pulling in the powerful regex engine.

        That would be a reasonable enhancement to super search's title searching capabilities, especially if it is made smart enough to avoid the space concatenation when there are no search terms that begin and/or end with a space.

        Any takers?

                - tye (one of those who rlike 'Tye')

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://203765]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-16 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found