INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Search = Contains  (Read 2384 times)

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2222
Search = Contains
« on: August 02, 2006, 12:01:29 am »

Is it possible to search a specific field say 'name', for a string that is somwhere in that field, but not exact?
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Search = Contains
« Reply #1 on: August 02, 2006, 12:29:44 am »

absolutely.... pivotal tool in my image library :)

http://yabb.jriver.com/interact/index.php?topic=32964.msg226899#msg226899

just shout if you need usage examples.

On second thoughts, perhaps that's not what you want after all, because, for searching, in the way you describe,

[name]=the

would return all manner of [name]s...

the back of beyond
theme for a vampire
theatre stage
creme de menthe

all satisfy the search.
So, now I'm not too sure what the question is. If I've already answered, grreat :)
Otherwise, ask again perhaps?

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2222
Re: Search = Contains
« Reply #2 on: August 02, 2006, 01:17:22 am »

Ok that kinda helps, I was using the standard search and the name field brought up a list o songs whihc is not what I wanted.  Even editing by typing didn't work.

Yours sort of works, how would you search for '('?
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2222
Re: Search = Contains
« Reply #3 on: August 02, 2006, 01:45:34 am »

Ok Marko, I know you have a site, I hae used some of it actually, now unleash the hounds, or maybe I should just look through your past posts for cool things to do in MC?
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Search = Contains
« Reply #4 on: August 02, 2006, 03:26:35 am »

Quote
Yours sort of works, how would you search for '('?

[name]=/(

will do just that.

As for "my site", well, I've not done anything with it since February!! More like kittens than hounds atm :p
I've got bits of ideas, and know how I'd like it to look, but I'm no webwizard so things move very very slowly!!

Encouragement like that could get me firing things up again, thanks for the mention...
I must finish my image tagging marathon first though. The next addition will probably contain some details as to what's been keeping me occupied recently
maybe in about a month...
stay tuned.

dcwebman

  • Citizen of the Universe
  • *****
  • Posts: 2154
Re: Search = Contains
« Reply #5 on: August 02, 2006, 07:25:23 am »

Thanks for this topic. I just downloaded some Podcasts for the first time and was trying to figure out how to get them out of one of my smartlists that pulls random songs. I tried using Filename (path) since all the Podcasts are put in a different folder but didn't realize not to put the brackets after the = sign. I ended up using [Feed URL]=[] which worked too.

Does the Feed URL sound like the best way to avoid the Podcasts in this case?
Logged
Jeff

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Search = Contains
« Reply #6 on: August 02, 2006, 11:29:02 am »

personally, I use: -g=podcast
I've actually added that exclusion to my top level Audio and Video viewschemes.

Though I don't see anything wrong with using [feed url]. There are often many ways to achieve your goal with MC, sometimes, there are pros and cons involved with different routes, but in this case, I don't see any difference and the end results are the same.

tips:
as mentioned above, if you don't use formatting around the search term, then "contains" is implied. if you have spaces in your string, you need to use double quotes.
[name]=single
[name]="two words"

If you wrap the term in square brackets, it implies "precisely matches"
[name]=[single]
[name]=[two words]

If you combine quotes and square brackets, it implies "ends with"....
[name]="single]
[name]="two words]

or begins with...
[name]=[single"
[name]=[two words"

Go to tools > options > library and find "Name" in the list, select it, then hit the edit button:

Have a look in the lower left corner under "search".

Every field that has the "default search field" ticked will be searched if you simply type a search term into the search box, and don't specify a [field name] to search by.
Also, the keywords field is extremely useful if you want to get into smartlist building. Taking a few seconds to configure keywords for often used fields will save you a bundle of typing in the future.
In the [name] example above, you can see that n is a keyword, which means that...
[name]=single and n=single are exactly the same search.

A few that I've added are:

  • mt= for [media type]
  • ft= for [file type]
  • fnn= for [filename (name)]
  • fnp= for [filename (path)]
  • fn= for [filename]
  • aaa= for [album artist (auto)]
  • lp= for [last played]
  • np= for [number plays]
  • tn= for [track #]

-marko.

datdude

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2222
Re: Search = Contains
« Reply #7 on: August 02, 2006, 04:24:56 pm »

Here is a couple of expressions MC needs to add:

JRiver = Build

Marko = Use
Logged
"You are not a beautiful or unique snowflake." -  Just a very big snowball

dcwebman

  • Citizen of the Universe
  • *****
  • Posts: 2154
Re: Search = Contains
« Reply #8 on: August 03, 2006, 09:23:58 am »

personally, I use: -g=podcast
Thanks for the great info. I didn't realize about the shorter names. My first thought was to use the genre tag to exclude podcast but then I figured I would have to make sure that they all have that set (maybe they do automatically).
Logged
Jeff
Pages: [1]   Go Up