https://github.com/alchemy-fr/Phraseanet/blob/master/lib/Alchemy/Phrasea/Controller/Prod/Query.php#L34