INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: biblio on February 25, 2019, 03:20:50 pm

Title: does search language have not equals? (!=)
Post by: biblio on February 25, 2019, 03:20:50 pm
I've just had a quick glance through the wiki and searching here but can't see it.

I want to be able to search for something in my fields but exclude known correct fields.

Something like one of these for files mistagged over samba.
[Album Artist]="~" AND [Album Artist]!="~▲†▲~"
[Album Artist]="~" AND NOT [Album Artist]="~▲†▲~"

There's and/or etc but no not/!=?
Title: Re: does search language have not equals? (!=)
Post by: swiv3d on February 25, 2019, 03:44:12 pm
From the wiki:
Negation and All
Operator    Description
-field    Inverts the sense of the comparison, returning those files whose field does not match the specified value. Usage is limited to the equality and comparison operators.

Example: Return all files whose track number is not 1:

-[Track #]=1

Example: Return all files whose track number is not greater than or equal to 3:

-[Track #]=>=3

Note that this equivalent to the more direct search phrase:

[Track #]=<3

Example: Return all files by artist Mark Isham, except those whose album names begin with after or quiz, or end with home, and exclude files from 1993:

[Artist]="Mark Isham" -[Album]=[after",[quiz","home] -[Date (year)]=1993

Example: Return all files that have associated artwork (i.e. [Image File] is not empty).

-[Image File]=[]
Title: Re: does search language have not equals? (!=)
Post by: biblio on February 25, 2019, 05:01:16 pm
Ahhh, Thank you!

I was looking for all the sql/query things i was used to and glossed over that
Title: Re: does search language have not equals? (!=)
Post by: swiv3d on February 25, 2019, 05:03:54 pm
Yes  I agree, it is a bit of a learning curve after using MSQL etc. But it does a good job - hope it all works for you.
Title: Re: does search language have not equals? (!=)
Post by: biblio on February 25, 2019, 07:26:34 pm
Are we able to make an account and propose edits on the wiki?

I would just like to put extra language in to make the search come up for other people with the same issue.
Title: Re: does search language have not equals? (!=)
Post by: swiv3d on February 25, 2019, 07:37:51 pm
I would suggest the  - Be happy my problem is solved!
Title: Re: does search language have not equals? (!=)
Post by: RoderickGI on February 25, 2019, 08:15:01 pm
Are we able to make an account and propose edits on the wiki?

What would you want added?

You can request Wiki editing access if you want to do it yourself. Or just make a suggested change here in this thread.



I always have to think twice with the Negation operator ( -[field] ), particlarly when MC uses the functions like "isequal()" to test if something is equal, and "!isequal()" to test is something is NOT equal.
i.e. In an expression such as
If(!isequal([Artist], Enigma, 1), NOT, TRUE)

The simple dash doesn't feel natural to me. But, that is what we have.  :)
Title: Re: does search language have not equals? (!=)
Post by: biblio on February 25, 2019, 09:28:45 pm
I don't need edit access I would just suggest an additional sentence in "Negation and All" at the top of the section. Something that included common search terms would cover all the sql guesses I took this morning in one sentence:

In database terms; the use of negation is similar to "!=" (not equals) and "IS NOT" but is set at the beginning of the term.
Title: Re: does search language have not equals? (!=)
Post by: biblio on February 25, 2019, 09:29:53 pm
I would suggest the  - Be happy my problem is solved!

This forum has made me really happy i purchased MC
Title: Re: does search language have not equals? (!=)
Post by: RoderickGI on February 26, 2019, 12:21:34 am
Done.