rayray14 2 Posted January 14, 2016 Share Posted January 14, 2016 Hello, Is there a way to search multiple tags using an "OR" syntax? For instance, I want to search across notes tagged with my kids' names: Quote tag:jake OR tag:dan OR tag:spencer baseball Thanks, Rob Link to comment
Level 5* CalS 5,307 Posted January 14, 2016 Level 5* Share Posted January 14, 2016 If you are looking to get all notes with a kids name tag use the ANY operator. Link to comment
rayray14 2 Posted January 14, 2016 Author Share Posted January 14, 2016 Perfect! How would I structure the query then? This doesn't seem to work (it brings back all notes with baseball): any: tag:jake OR tag:dan OR tag:spencer baseball Link to comment
Level 5 jbenson2 2,149 Posted January 14, 2016 Level 5 Share Posted January 14, 2016 You cannot combine OR with AND in a search. This search will find tags that are jake OR dan OR spencer any: tag:jake tag:dan tag:spencer There is a work around, and it can be done quickly, but most users don't want to use it. Tag the group of jake, dan, and spencer with a temporary tag (family) and then search for tag:family tag:baseball Link to comment
Level 5* CalS 5,307 Posted January 14, 2016 Level 5* Share Posted January 14, 2016 @rayray14, To @jbenson2's point, you can only do AND (a note must have all the tags to found) or ANY (a note may have any of the tags to be found) searches in EN. The AND/OR has been requested many times but EN has opted not to add it to the product. So in the meantime workarounds like the above are how to get it done. In case you aren't aware, the easy way to create the temporary tag is to do the any search, hit Ctrl-A to select all the results, hit Ctrl-Alt-T to get the assign tags window, enter the tag in the Add a new tag area, click Add and then OK. Link to comment
rayray14 2 Posted January 14, 2016 Author Share Posted January 14, 2016 Thanks jbenson2 & csihilling, I think creating a parent tag for Kids is good (permanent) solution. Link to comment
Level 5* CalS 5,307 Posted January 14, 2016 Level 5* Share Posted January 14, 2016 You are welcome. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.