You can retrieve the current value of the search bar using the getValue method.
getValue
The value of the search bar is an array of Token Groups.