I encountered this last week on my site.
What I had done was copied the notation directly from SMW_Settings.php which read:

$smwgQComparators = '<|>|!';

That, however, is missing the like operator ~

I changed that in LocalSettings to read:
$smwgQComparators = '<|>|!|~';
Works fine now!

Best of luck
Jennifer