Page 1 of 1

Can I set up a synonym for a search term?

Posted: Wed Jun 12, 2019 1:38 pm
by burgundy
Can I set up synonyms for a search term?

For example, I have some documents with "cobalamin" in the name but other documents use "B12" and yet others use "B-12".

I would like to enter a single search term to find documents with any of those terms. Is this possible?

Re: Can I set up a synonym for a search term?

Posted: Wed Jun 12, 2019 2:54 pm
by therube
Search | Organize Filters... -> New... -> Name: mynewsearch, Search: cabalamin|b-12|b12, Macro: CB

Then you can search for CB:

Re: Can I set up a synonym for a search term?

Posted: Thu Jun 13, 2019 11:22 am
by burgundy
therube wrote:
Wed Jun 12, 2019 2:54 pm
Search | Organize Filters... -> New... -> Name: mynewsearch, Search: cabalamin|b-12|b12, Macro: CB

Then you can search for CB:
That works well. Thank you. I imagine there's enough room in that list for a few dozen synonyms.

However I feel such synonyms don't really belong in the filter list and their definitions should be shown elsewhere.

Re: Can I set up a synonym for a search term?

Posted: Tue Jun 18, 2019 3:45 pm
by burgundy
therube wrote:
Wed Jun 12, 2019 2:54 pm
Search | Organize Filters... -> New... -> Name: mynewsearch, Search: cabalamin|b-12|b12, Macro: CB

Then you can search for CB:
I've just realised this works only for file names. Not for folder names.

(1) If you have set "Search > Match Path", then searching for "B12" will also find files which do NOT have "B12" in their name but which have "B12" in their path name.

(2) However replacing "B12" with "B12:" (while keeping "Match Path" on) will not find those entries.

So this method does not produce true synonyms.

Re: Can I set up a synonym for a search term?

Posted: Tue Jun 18, 2019 7:24 pm
by NotNull
If you make it a bookmark instead of a filter like this:

2019-06-18 21_19_21-Edit Bookmark.png

That should not be an issue (not tested).


Note:
Be aware that macro-names are case sensitive. In this case b12: will produce results, whereas B12: probably does not.