Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

supersearch: how to match words?

by rsFalse (Chaplain)
on Sep 20, 2019 at 15:56 UTC ( [id://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 (Saint) 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 (Paladin) 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 (Patriarch) 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 (Archbishop) on Sep 20, 2019 at 16:00 UTC
Re: supersearch: how to match words?
by rsFalse (Chaplain) on Sep 20, 2019 at 17:31 UTC
    Thank you for answers! :(
      Your welcome! :(

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-20 14:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found