Page MenuHomePhabricator

Create search predicates for searching specific image metadata items
Closed, ResolvedPublic

Description

We need to create code for searching specific image metadata properties, e.g. filesize:<200kb or filemime:image/png.

Proposed predicates:

MaskExampleDescription
infile:{text}infile:"hyperbolical paraboloid"search only inside file text
filesize:[<>]{size}filesize:<200checks if file size is more/less than specified. Omitting size is the same as >. Size is in kilobytes.
filetype:{TYPE}filetype:imagefile media type
filemime:{MIME}filemime:application/pdffile MIME type
filebits:[<>]{bits}filebits:16bit depth of the data. Omitting <> is exact match.
fileres:[<>]{size}w,{size}h,{size}rfileres:>600w,800h,500rfile measurements. 'w' is width, 'h' is height, 'r' is resolution which is sqrt(w*h). Omitting <> is exact match.

Event Timeline

Change 311061 had a related patch set uploaded (by Smalyshev):
[WIP] File search features

https://gerrit.wikimedia.org/r/311061

Change 311061 merged by jenkins-bot:
File search features for CirrusSearch

https://gerrit.wikimedia.org/r/311061