If you are running into an issue that you inserted a "Text Input" box and all the sudden you do not have a "Text" property to write the search formula...
You inserted the wrong version of the Text Input. There are two.
To get the .Text property for searching galleries, you need the CLASSIC Text Input. The other one is a Preview Text Input.
Sigh...