added the ability to return content instead of entities for custom
search hooks