Zkuste toto
SET @searchthis="lumia";
SELECT CAST((LENGTH(`documents`.`file`) -
LENGTH(REPLACE(`documents`.`file`, @searchthis, ""))) /
LENGTH(@searchthis) AS UNSIGNED
) AS searchthis_count
FROM documents ;