updated text_search with object literals