Function_score is so slow . how can i slove it?

Using data from source means the document need to be loaded, which will take longer.
Lower performance us therefore IMHO expected.

How long is the field?