I've got a custom publish kind of photo and want to find photos matching the title or description using the search keyword with assorted criteria as - consists of LIKE %$search_term%, begins with LIKE $search_term% etc. I've the next query but this does not filter records based on $search_term. Please direct me right direction to embed this requirement with this particular query.

$search_term = $_GET['term'];
$search_criteria = $_GET['type'];

$loop = new WP_Query( array(
    'post_type' => 'photo',
    'posts_per_page' => 12,
    'orderby'=> 'post_date'

Be nice beside me, I'm a newbie in Wordpress as well as have no idea should i be asking foolish question. However I am really tied to it and want a solve. Any assistance will be appreciated a great deal. Thanks everyone.