If I use the example custom attribute as below, the workflow work well
attributes := map[string]interface{}{
“CustomIntField”: 1,
“CustomBoolField”: true,
}
But when I change the attribute keys as below
attributes := map[string]interface{}{
“CustomKeywordField11111”: “test”,
}
It raise error
"BadSearchAttributes: search attribute CustomKeywordField11111 is not defined"
Just to add, the “CustomXYZ” search attributes that the sample is using are added by default to your ES index (see here) as well are added if you dont use advanced visibility, so those do no not have to be registered before running the sample.
If you want to use your custom search attribute (not the default ones) yes as mentioned please add it to your cluster first, for example:
tctl adm cl asa -n CustomKeywordField11111 -t Text
(wait about 10s for cluster ns cache to refresh and then run your sample again.