QUOTE(hermit22 @ Oct 18 2003, 09:18 PM)
This plugin's great. But a feature request: could you add an ability to search for a blank field? My mp3s are still kind of messy, so a lot of them are missing, say, an album name, or a genre. It would be really helpful if I could find all those at once.
Other than that, love it. Thanks!
Search in database, set format to ... whatever, doesn't matter for this one. Set the filter mode to "match all" or "match" one (the dropdown box to the right of the pattern field). Now type "-%artist%" in the pattern field. Result shown: All items in database without an artist tag. Of course, to do this you first have to get:
foo_dbsearch 1.0.0- removed user-defined filter
- removed search arguments (If you know what that is, don't worry, you won't miss it much.)
- the contents of the pattern field is
only remembered when you press enter in this field.
- added various filter modes
- changed the UI a bit

download link:
pluginUnfortunately, there's no updated documention yet, so I'll write something about the filter modes right here:
passThe simplest mode. All items pass the test.
booleanThe same as in Extended search, only it uses the pattern field, if that is non-empty. If it is empty, it falls back to the format field.
match exact and
match prefixThe pattern is matched verbatim against the result of running each item through the format given by the Format field. For "match exact" the two have to be exactly the same (ignoring character case), for "match prefix" the pattern has to be a prefix of the formatted string. In both cases an empty pattern does not match anything.
match all and
match oneProbably the most interesting modes. The pattern is split into
conditions. A condition is either:
1) a
keyword: any string that does not start with one of +, -, ", or % and does not contain spaces.
Example:
CODE
bla
2) a
quoted phrase: a string that starts with " (double quotes); ends at the next " or at the end of the pattern.
Example:
CODE
"bla bla"
3) a
field condition: a string that starts with % (percent sign); ends at the next % or at the end of the pattern.
Example:
CODE
%field name%
Keywords and quoted phrases match, if their text is contained in the formatted string of an item.
A field condition matches, if a field with the given name exists. A field name starting with __ (two underscores) refers to an info field, any other field name refers to meta field. Special fields can not be matched with this.
A condition can be prefixed with + (plus sign) or - (minus sign) to turn it into a
strong condition. Strong conditions must always be met, also in "match one" mode. +A is true, if A is true. -A is true, if A is false.
In "match all" mode, all conditions must be true.
In "match one" mode, all strong conditions must be true, and at least one of the weak conditions, if there is one.
Examples ("match one" mode):
CODE
a
CODE
+a
Matches all tracks where a is true.
CODE
+a b c
Matches all tracks where a is true and at least one of b and c.