@Anonymous
Sure - Search works ONLY on text columns. Choice and People (and lookup and calculated) are all considered complex types.
So, the solution here is to add a column to the results of the datasource and then assign the value of the complex type to it. Then the new column is a text column and can be searched.
Also an FYI - if you plan to use the record of the Gallery for any other purposes and then submit back through an EditForm or other action, you will want to remove the column from the gallery. As in this formula:
DropColumns(
Search(
AddColumns(BRD,
"txtFunction", Function.Value
),
TextInput1.Text,
"Title",
"Scope",
"BusinessPurpose",
"txtFunction"
),
"txtFunction"
)
This will actually do three things - first it adds the txtFunction column and assigns the complex column "Function" value to the column. It then Searches the results of that (including the txtFunction added column), then it removes the txtFunction column (as it is no longer needed) and ultimately returns the combined results.