You can retrieve the current value of the search bar using the getValue method.

The value of the search bar is an array of Token Groups.