Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#41948 - 17/10/2001 13:35 Advanced Searching...
phaigh
addict

Registered: 04/11/1999
Posts: 649
Loc: Reading, UK
Perhaps this was mentioned, but are additional search criteria going to be available in emplode?

I can't seem to find a way to start the advanced search (such as to find all 'marked' records).

Thanks!!

Paul.

Paul Haigh, Reg. 4120
(mk1) 6GB, Blue, 00254
(mk2) 12GB, Red, 00357
_________________________
Paul Haigh, Reg. 4120 (mk1) 6GB, Blue, 00254 (mk2) 12GB, Red, 00357

Top
#41949 - 17/10/2001 13:47 Re: Advanced Searching... [Re: phaigh]
schofiel
carpal tunnel

Registered: 25/06/1999
Posts: 2993
Loc: Wareham, Dorset, UK
I assume you have got onto the "Search" tab and have selected the "Advanced" radio button. You can now type a search string or criteria into the text box, then hit the "Search Now" button. I am sure you have sussed this bit.

The clever stuff is knowing what you want to use as a search key, or criteria. One of the ones Roger told me is that a file that has no more references (which therefore does not appear in any playlist) can be found by typing in refs=0 as the search string. This should give you a list of unreferenced files that you can choose to remove from the player, or move into a concrete playlist.

Unforch, I haven't sussed many other fancy ones, other than looking for specific strings in titles or artist names, for example. You'll need to buy Roger a pint for that sort of info...

Alternatively, if you are just looking for way to display marked tracks, right click on a column header in the "Detail" view of a playlist, and you should get a dialogue showing posible columns that can be displayed in the view. Scroll down until you find "Marked" and select it to add it to the column header list in the position you want to see it.

One of the few remaining Mk1 owners... #00015
_________________________
One of the few remaining Mk1 owners... #00015

Top
#41950 - 17/10/2001 14:21 Re: Advanced Searching... [Re: schofiel]
phaigh
addict

Registered: 04/11/1999
Posts: 649
Loc: Reading, UK
Rob,

Thanks for the info - I get it.

Hadn't sussed the right click on menu bar for columns bit - now that's clever/groovy.

Guys@Empeg (Roger) - any chance of understanding the fields/columns that we can search on in the 'advanced' search stuff?

Oh, and I can 'save' the searches, but where are they stored in the filesystem?

Cheers,

Paul.

Paul Haigh, Reg. 4120
(mk1) 6GB, Blue, 00254
(mk2) 12GB, Red, 00357
_________________________
Paul Haigh, Reg. 4120 (mk1) 6GB, Blue, 00254 (mk2) 12GB, Red, 00357

Top
#41951 - 17/10/2001 15:14 Re: Advanced Searching... [Re: phaigh]
Wire
member

Registered: 11/09/2000
Posts: 143
Loc: Jylland, Denmark
By tinkering around (reverse engineering is not allowed :) I found out the following:

Simple search

A simple search does an advanced search hidden from prying users eyes, which is simply quite clever. It's a "wrapper" for the advanced search, making it easy to use.

Advanced search

Roger's made quite a flexible system for the advanced search.

Fields:
artist (string)
genre (string)
tracknr (number)
comment (string)
genre (string)
year (number)
skipped_count (number of times you skipped the track with 2.x player software)
play_count (number of times the track was played with 2.x player software)
marked (string, "" is unmarked, "yes" is marked)
codec ("mp3", "wma", "wav")
copyright (number, 0 is no copyright, 1 is copyrighted)

numeric operators
<
>
<=
>=
=
!=
string operators
is (excact search)
like (glob search, example to find Various Artists): artist like "V*A*")
contains (what it says, must contain a sub-string)

and
or

You can also use ( and ) to group expressions.

Examples:

(artist is "U2") and (genre contains "rock")
year <= 1974
codec != "mp3"
marked = "yes"


There's probably more hidden in the search system, but here's what I could figure out in 30 minutes.

Have fun!


Lars
_________________________
Lars MkII 40gig 090000598

Top
#41952 - 17/10/2001 15:24 Re: Advanced Searching... [Re: Wire]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Search fields sound awfully like *1 tag file fields, don't they ?

Dragi "Bonzi" Raos
Zagreb, Croatia
Q#5196, MkII#80000376, 18GB green
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#41953 - 17/10/2001 16:58 Re: Advanced Searching... [Re: Wire]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
I was about to say that reverse engineering is allowed because we link an LGPL component, but then I remembered that we nolonger use ID3Lib in emplode so now you can't

The search feature will be documented in the emplode help file, in the mean time you pretty much have it worked out. We're going to use advanced searches in a very cool new feature at some point, but I won't spoil the surprise!

Rob





Top
#41954 - 17/10/2001 17:16 Re: Advanced Searching... [Re: rob]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
We're going to use advanced searches in a very cool new feature at some point, but I won't spoil the surprise!

Playlists defined by searches or something even cooler?

Dragi "Bonzi" Raos
Zagreb, Croatia
Q#5196, MkII#80000376, 18GB green
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#41955 - 17/10/2001 17:21 Re: Advanced Searching... [Re: bonzi]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
You're getting warm, but something much cooler. That's the last I'll say on the subject until it happens

Rob



Top
#41956 - 17/10/2001 21:52 Re: Advanced Searching... [Re: Wire]
cwillenbrock
enthusiast

Registered: 30/12/2000
Posts: 249
Loc: Dover, NJ
A little quirk I noticed...

You can search for all songs that aren't in any playlists (but are in the soups) using the advance search string "refs=0", but that case sensitive, so "Refs=0" doesn't do what you'd expect. It instead returns all tunes on the player.

This is the only field I see offhand that behaves this way (case-sensitive). I haven't really looked that hard, though. I noticed for fields like tracknr, it wouldn't matter if you typed "tracknr", "Tracknr", or "TraCknr"...it would still find the results correctly.

You also have to be careful, b/c with any other "equals zero" numeric value searches, if you specify a field that it doesn't recognize, it returns all tracks. A search for "madeup=0", it will return all tracks. So that's why "Refs=0" returned all tracks, even though they had more than zero references.

- Chris
32GB MK2 090000664 Smoke
Queue # 2 (who the heck was 1?)
_________________________
- Chris Orig. Empeg Queue position 2

Top
#41957 - 17/10/2001 22:22 Re: Advanced Searching... [Re: rob]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
For once I actually read the licence that is displayed during install, which says something along the lines of being allowed to reverse engineer it if you want...

__
Unit serial number 47 (was 330 in the queue)...
_________________________
Remind me to change my signature to something more interesting someday

Top
#41958 - 18/10/2001 03:48 Re: Advanced Searching... [Re: Wire]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
No negation operator?

(Not that I'll use Emplode, not using Windows, but it seems useful and may go into emptool and/or JEmplode...)

--
Toby Speight - 040103385
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#41959 - 18/10/2001 04:34 Re: Advanced Searching... [Re: tms13]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
For the full gen on advanced searching, check out this. Give me a chance to write it first, though.


-- roger
_________________________
-- roger

Top
#41960 - 18/10/2001 04:55 Re: Advanced Searching... [Re: cwillenbrock]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
The pseudo-tags (of which refs is one) are looked up, treating the tag name case-sensitively. The other tags are case-insensitive.

Thus Refs on any item returns the empty string. This evaluates to boolean false. You compare this for equality with a literal zero, which also evaluates to boolean false. They're equal, so everything matches, since the term just evaluates to true.


-- roger
_________________________
-- roger

Top
#41961 - 18/10/2001 05:41 Re: Advanced Searching... [Re: Roger]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
Cool. How many other consumer appliance companies provide BNF?


Will advanced search be accessible from emptool?

In particular, I'd like to be able to list "marked" files.

--
Toby Speight - 040103385
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#41962 - 18/10/2001 05:47 Re: Advanced Searching... [Re: tms13]
edwin
member

Registered: 26/09/2000
Posts: 194
Loc: Druten, The Netherlands
It's possible, just read some other posts....

ญญ______________
Edwin de Vaan
_________________________
[white]ญญ______________[/white]
Edwin de Vaan aka FLaSHmAStER

Top
#41963 - 23/10/2001 10:47 Re: Advanced Searching... [Re: edwin]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
Okay, i fianlly got around to playing with the advanced searching.... wow. Great stuff.

Quick question (and if this is obvious or already answered, ignore me)

I want to search for all my mp3's that aren't tagged with an artist. Simple enough:

"Artist is blank"

Sweet. Problem is, it also pulls up all the playlists. How would i filter out the playlists from the actual songs, either in the search or in the interface?

UPDATE: answered my own question:

'Artist is blank and codec is "mp3"' worked to solve that problem. =]


|| loren.cox ||

Edited by loren on 23/10/01 06:49 PM.

_________________________
|| loren ||

Top
#41964 - 23/10/2001 11:48 Re: Advanced Searching... [Re: loren]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
You could try:

type="tune" and not artist

'artist is blank' only works because 'is' is a synonym for '=' and blank is not a keyword. It's used as a tag lookup, and since it's not defined anywhere, it evaluates to the empty string.

My personal favourite:

type="tune" and not ( artist and source and genre and year )


-- roger
_________________________
-- roger

Top
#41965 - 23/10/2001 11:59 Re: Advanced Searching... [Re: Wire]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Those operators can be used for string comparisons, if you so desire. Types are promoted to the item on the right of the operator, which is a little odd. I don't remember whether it's left-associative or right-associative.


-- roger
_________________________
-- roger

Top
#41966 - 23/10/2001 12:17 Advanced Advanced Searching... [Re: Roger]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Roger, any plans to implement regular expressions in advanved searches? I'd like to be able to search for improperly capitalized fields, for instance, "Midnight oil" or "Beds are burning" and correct them.

-Tony
MkII #554
_________________________
- Tony C
my empeg stuff

Top
#41967 - 23/10/2001 12:45 Re: Advanced Advanced Searching... [Re: tonyc]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Not unless I can find a decent regex library that's not GPL.

-- roger
_________________________
-- roger

Top