DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: One Alias - multiple search terms?  (Read 5,028 times)

BrokenNails

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 26
One Alias - multiple search terms?
« on: July 14, 2009, 03:17 AM »
Hi,

Quick question - I have an alias to a url that I'd like to have show up in the search results when I type one of two words - let's say 'apple' and 'orange' for arguments sake.

If I make the Alias Group name "Apple Orange" then as I type 'apple' in the search box my alias will appear, but if I type 'orange' it doesn't.

If I add a regex match of "apple|orange" then typing 'orange' does match but only when completely typed ie typing 'orang' wouldn't cause my alias to be listed.

Short of adding "ora?n?g?e?" as my regex match, or having two different aliases (ie one for apple, one for orange), is it possible to have FARR search for partial matches within an Alias name similar to what it does for file name matching? eg a file called "Apple Orange.txt" will appear when I type 'oran'.

Thanks,
Jeff

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: One Alias - multiple search terms?
« Reply #1 on: July 14, 2009, 03:29 AM »
i was just about to suggest using a regex when you pointed out the partial typing issue not working with regular expressions..
this hasn't come up before.

i think maybe a good solution would be to modify farr so that it will match on any word in the group alias name.  then you could use "Apple Orange" just as you wanted to originally.

any objections?

BrokenNails

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 26
Re: One Alias - multiple search terms?
« Reply #2 on: July 14, 2009, 03:50 AM »
Sounds like an ideal solution. Appreciate the quick response!  :)

Original address: https://www.donationcoder.com/forum/index.php?topic=19161.0