@Qjay
You can get text like this,
Create instance of search.qml means like
Search(this is your search.qml file instance, first latter should be capital of your qml file)
{
id: searchText
}
2 In search.qml file create property like
property alias Name_of_variable(like textOfSearchField): id_of_textfield(search_text.text)
Now wherever you want to use, can do like this.
searchText(id_of_instance).Name_of_variable
You will find exact value as you passed in search.qml file