Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

supersearch: how to match words?

by rsFalse (Friar)
on Sep 20, 2019 at 15:56 UTC ( #11106440=monkdiscuss: print w/replies, xml ) Need Help??

Hello, I tried to supersearch about "trie", but many other words occurred as search result. How can I set borders to the word?

Replies are listed 'Best First'.
Re: supersearch: how to match words?
by LanX (Archbishop) on Sep 20, 2019 at 16:09 UTC
    I suppose you mean "standalone" word.

    One way

    ?node_id=3989;BIT=%20Trie%20;BIS=%27

    Surround it with spaces but change the string separator to something different than spaces.

    I chose a single quote ' here as separator but anything different goes, even XXX

    ?node_id=3989;BIT=%20Trie%20;BIS=XXX

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    Update

    NB any instance of "trie" surrounded by anything else than spaces, like punctuation would be missed though.

    Like trie! at the end of a phrase.

Re: supersearch: how to match words?
by jdporter (Canon) on Sep 20, 2019 at 16:40 UTC

    Another thing is to add the substrings you don't consider hits to the "skip text" and "skip titles" fields:

    ?node_id=3989;BIT=Trie;BET=tries%20tried%20triev;HET=tries%20tried%20triev

    Of course, that isn't perfect either, especially if "tries" - plural of "trie" - shouldn't be excluded.

    I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
Re: supersearch: how to match words?
by Corion (Pope) on Sep 20, 2019 at 16:08 UTC

    By default, Super Search searches for substrings as well. There is no easy way to search for exact words without searching for substrings. You can do so by using an alternate search term separator and then searching for trie_ (blank replaced by underscore here for emphass), but that will again miss stuff in your node, like "trie".

    ?node_id=3989;BIT=trie%20;BIS=%20-

Re: supersearch: how to match words?
by Your Mother (Bishop) on Sep 20, 2019 at 16:00 UTC
Re: supersearch: how to match words?
by rsFalse (Friar) on Sep 20, 2019 at 17:31 UTC
    Thank you for answers! :(
      You're welcome! :(

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2019-12-07 17:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (162 votes). Check out past polls.

    Notices?