Text Search For Query New Design

Tests are outdated given the new design and I will re-write them. 

This anonymous function body needs to be indented another level.