- strpos: documentation ( source)
<?php
$myarray = Array
(
221 => 'suspended-suspended-1',
691 => 'knee-ir-1',
812 => 'knee-ir-4'
);
$row['id']=691; //for example
if(isset($myarray[$row['id']]) && strpos($myarray[$row['id']],"ir") !==false){
echo "ir exists on the search index ".$row['id'];
}