Jan Vidar Krey writes:
> On Tuesday 02 December 2003 18:25, eric wrote:
> You know the $Search query. Using a standard
> > text protocol (only 1 command allowed, you have no limit, it is a draft
:)
> > ), produce me an example working for searching:
> > 1) an mp3
>
> SRCH [dest] [search id] audio/mpeg >0 [pattern]
>
> > 2) an avi bigger than 2MB
>
> SRCH [dest] [search id] video/x-msvideo >2097152 [pattern]
>
> > 3) an mp3 bigger than 2 MB but smaller than 10MB
>
> SRCH [dest] [search id] video/x-msvideo 2097152-10485760 [pattern]
>
> > 4) an avi or an mpg being bigger than 350MB but smaller than 700MB
>
> SRCH [dest] [search id] video/x-msvideo,video/mpeg 367001600-734003200
> [pattern]
>
> Note:
> Sizes can be (where xxx is a number indicating size in bytes):
> 1) ">xxx" means more or equal.
> 2) "<xxx" less or equal
> 3) "xxx" exact size
> 4) "!xxx" not exact size
> 5) "xxx-xxx" more or equal and less or equal
> 6) "xxx,xxx" list of exact sizes
> ">0" any size (actually just number 1)
You might want to take a look at the SRCH criteria syntax that I
described in my draft just recently. I kind of liked it. I don't know
if I like the grouping syntax (because of the overhead it gives on
clients), but I think the rest of it was rather good.
Fredrik Tolf