Some note that maybe you can find useful from the template above.
1. Via variable template we are able to associate a simple input text element to perform the search onto alfresco .The directive below is needed in order to execute the bind form the input text field to the search:
2. The auto variable is the variable which contains our search component :