Query nodes with a specific word in them I'm very new to Drupal and I need to grab all nodes that have a certain word in them, for example I want to grab all nodes with the Word 'Hello' inside the body field. I need to use the EntityFieldQuery class too. I'm assuming I need to use the fieldCondition method but not sure how to set that up as there's not a lot of documentation...

Thanks
Alex
I'm not sure I'd agree there's not a lot of documentation out there (there are tons, just search Google for EntityFieldQuery).

That said, something like:

$query = new EntityFieldQuery();
$query-&gt;entityCondition('entity_type', 'node')
  -&gt;propertyCondition('type', 'some_type')
  -&gt;fieldCondition('body', 'value', '%' . db_like($input_string) . '%', 'LIKE');

$results = $query-&gt;execute();


is probably what you're looking for