simple search api (was Re: mimetype standardisation by testsets)

Thiago Macieira thiago at
Sun Nov 26 15:55:05 EET 2006

James "Doc" Livingston wrote:
>This would work, as music players could search for files that have
>audio/* and no video/* types. The only question is whether any/all of
>the backend searchers do this, as it would make it awkward for what to
>do to depend on the backend.

If they don't, they should probably be fixed to support it.

For instance, seeing an .ogg file and assuming it's Vorbis is wrong (it 
could be FLAC). Just as it would be wrong to not inspect and know what it 
is internally.

If a file type is a container type, the indexer has to be smart enough to 
look inside it. A good example are zip files, which can be OpenDocument 

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 

More information about the xdg mailing list