It would be useful to be able to search files by meta-data. For instance:
- size:<200kb to find files smaller than 200kb
- type:video to find only videos
- mime:image/png tp find only png files
- resolution:>800 to find files with sqrt(width*hight) >800
In order to achieve this, additional fields should be exposed to the SearchEngine, based on information provided by the File object and MediaHandler associated with a page in the file namespace.
Note: Indexing files is currently bound to the WikitextContentHandler. It would be nice to have a way to define search index fields independently of the content model, perhaps based on page type (article, category, image) or namespace.
For now, it would be sufficient to add the desired information in WikitextContentHandler::getDataForSearchIndex and getFieldsForSearchIndex, in the same way the file_text field is defined and populated.