dvollc 33 Posted April 24, 2023 Share Posted April 24, 2023 Hello everyone. Is the 'any' advanced search operator limited to just text comparisons or can I compare other advanced search operators? For example, I know <any: A B> returns notes with A or B in it. However, can I do <any tag:A tag:B> to return notes with Tag A or Tag B? Yes, I have the Personal level so Booleans are not in my version. I've tried this on my pile of notes and I am not understanding the results I see which is why I am posting the question. Thanks in advance. Link to comment
Solution Mike P 2,974 Posted April 24, 2023 Solution Share Posted April 24, 2023 18 minutes ago, dvollc said: However, can I do <any tag:A tag:B> to return notes with Tag A or Tag B? Yes that works, except I note you have left out the colon after any which is either a typo or the reason you are not getting the expected results! 2 Link to comment
Level 5* gazumped 12,065 Posted April 24, 2023 Level 5* Share Posted April 24, 2023 You might find it easier to use filters too. Link to comment
Mike P 2,974 Posted April 24, 2023 Share Posted April 24, 2023 22 minutes ago, gazumped said: You might find it easier to use filters too. But how do you modify filters to make them any rather than all? 1 Link to comment
Level 5* gazumped 12,065 Posted April 24, 2023 Level 5* Share Posted April 24, 2023 1 minute ago, Mike P said: But how do you modify filters... Ah. Good point. You can't. Oops? 🫢 1 Link to comment
Mike P 2,974 Posted April 24, 2023 Share Posted April 24, 2023 24 minutes ago, gazumped said: Ah. Good point. You can't. Oops? 🫢 I suppose for completeness we should point out that if the tags you want to include are all sub tags of a given tag then using the drop down from the first tag allows you to search for ANY of the main tag and subtags. 1 Link to comment
Level 5* gazumped 12,065 Posted April 24, 2023 Level 5* Share Posted April 24, 2023 4 hours ago, Mike P said: if the tags you want to include are all sub tags of a given tag ...and even if not, you could easily search for one tag and add a new <temp> tag, then search for the other tag and add <temp> to (kind've) get an 'any' search. The <temp> tag has either or both - not elegant, but it works. 1 Link to comment
dvollc 33 Posted April 25, 2023 Author Share Posted April 25, 2023 Thanks @Mike P ! As far as the missing colon goes, yes it was a typo. Unfortunately, I see I can’t combine an AND and OR via <X any:A B> i assume I need to upgrade my subscription to the next level for that. Link to comment
Mike P 2,974 Posted April 26, 2023 Share Posted April 26, 2023 9 hours ago, dvollc said: Unfortunately, I see I can’t combine an AND and OR via <X any:A B> My reading of the search grammar (https://dev.evernote.com/doc/articles/search_grammar.php) is that it is possible. There are certainly examples given where any: is used part way through a search string and only effects subsequent entries. I just tried: tag:$pinned any: tag:ggplot tag:tidyverse and I got notes tagged with $pinned AND either ggplot OR tidyverse. 4 Link to comment
dvollc 33 Posted April 26, 2023 Author Share Posted April 26, 2023 Thanks @Mike P for the insight and reference. Also, it seems that the any: operator needs to be the last operator as any subsequent text (or operator) is interpreted as part of the any: operation. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now