text search reformat results so can be used better by angular