Hi@yougan,
Based on the issue that you mentioned, do you want to search Choice column using the Search() function?
Could you please share a bit more about the scenario?
I agree with @GarethPrisk , the Search() function does search only the column containing text strings. As we know, complex field types (Choice, Lookup, Date and time, Person) are non-delegable in SharePoint, so if you have a huge data set (records>2000) you will have the delegation warning.
If your data set is smaller than 2000 records, I think you could try the following workaround.
// Replace the Search() with the StartsWith() function, note that the StartsWith() function could only test for the start string.
Set the Items property of the Gallery as below:
Filter(
[@'Gym Pass'],
StartsWith(
Color.Value,
TextSearchBox1.Text
) Or StartsWith(
Title,
TextSearchBox1.Text
) Or StartsWith(
Depart.Value,
TextSearchBox1.Text
)
)
Note: 'Gym Pass' is my SP list name, please replace it with yours.
Hope it could help you.
Best Regards,
Qi