WACUP

General => General Discussion => Topic started by: Witzker on August 29, 2022, 01:55:24 PM

Title: Search Syntax
Post by: Witzker on August 29, 2022, 01:55:24 PM
Hi,
I try cleaning my library, so I use the search to identify Bad Tags.

How do I find "and" or "And" not Band
Pls help
Title: Re: Search Syntax
Post by: Aminifu on August 29, 2022, 05:31:53 PM
When you do a general search for anything (word or phrase), all the metadata in your files is looked at. The word "and" could be in 1 or more categories, such as the artist tag, album tag, title tag or some other tag. As you see, a short word could be contained in a larger word. Also, depending on the view you're using to search in, the results returned may or may not show the metadata tag that the word (or larger word) was found in.

You can use the Query Language features to make a custom search query to filter stuff in or out of the search. This is easier said than done. The documentation for the Query Language can be found in the dialog used to edit a Local Library smart view. Select 1 of these views (on the left-hand side of the ML window) and press the "F2" function key, then look near the bottom right-hand side of the edit dialog window that appears for the "Query Help..." button.

After closing the Query Language documentation window, be sure to cancel the smart view edit window to keep from making any accidental changes to the view.
Title: Re: Search Syntax
Post by: Witzker on August 29, 2022, 07:41:44 PM
Phu..
THX
Will try🤔

Sure no easyer way avilableā“
Title: Re: Search Syntax
Post by: dro on August 29, 2022, 09:29:00 PM
There's no way currently to just filter anything that matches to "and" (is something I'll have to consider adding).

You will need to look at specific column values & just work through them as needed e.g. entering the following into the search field to find that string in any of the titles
?title has " and "

Since you're trying to avoid it being part of other words, that's why it has to have the spaces around it otherwise it'll match on things like landing.

-dro
Title: Re: Search Syntax
Post by: Witzker on August 29, 2022, 10:43:19 PM
THX

?artist has " and " WORX!

Is there a way to save this kind of searches?
Title: Re: Search Syntax
Post by: dro on August 29, 2022, 11:28:08 PM
You can use the steps that aminifu noted to create a smart view that will do that search by default. You'd just have to not have the ? at the start of what is entered to be the view's query.

-dro
Title: Re: Search Syntax
Post by: Aminifu on August 30, 2022, 12:06:08 AM
Thanx dro for providing a shortcut answer. I was just trying to show Witzker how to fish.  :)