The doc says
The maximum total Search Attribute size is 40 KB.
Can someone let me know
I get the feeling that the doc you are referring to may be a bit out of sync with code.
According to the source code of the Temporal server (see default config and the validator), limits regarding Search Attributes are:
Note that for the second criteria, search attribute values are determined based on the payload size of each search attribute value, while for the third one, the total size appears to correspond to the length of the Protobuf encoded message containing the complete custom search attributes map (ie. search attributes names also count toward the 40 KB limit, plus some very small overhead due to the Protobuf encoding).