The default Search Attributes query is working for me, but not working when I query new added Search Attributes.
I’m able to see all the indexed filed from the command line, but when I tried query, it’s not working, can you please help check, is something was missing from my end? thank you in advance.
query by runid is working
bash-5.0# tctl wf list -q “RunId=‘2dbc2881-08ea-4fa3-9aff-dfc779094d3e’” --print_search_attr
WORKFLOW TYPE | WORKFLOW ID | RUN ID | TASK QUEUE | START TIME | EXECUTION TIME | END TIME | SEARCH ATTRIBUTES
AppZenWorkflow | a0b76f19aff044899c809be8645ce9ad__8e92c612-639d-44e0-b769-8773c6d8a818 | 2dbc2881-08ea-4fa3-9aff-dfc779094d3e | AppZenTest | 19:42:06 | 19:42:06 | 19:42:10 | ProcessStatus=enabled ProcessState=published
| | | | | | | ProcessName=invoice ProcessISPublic=true
| | | | | | | ProcessID=a0b76f19aff044899c809be8645ce9ad
| | | | | | | ProcessCreatorAccountId=3232
| | | | | | | BinaryChecksums=[1ba3767fed7b2a2052b24c7eb49c82d3]
| | | | | | |
query by customized Search Attributes not working
bash-5.0# tctl wf list -q “ProcessStatus=‘enabled’” --print_search_attr
WORKFLOW TYPE | WORKFLOW ID | RUN ID | TASK QUEUE | START TIME | EXECUTION TIME | END TIME | SEARCH ATTRIBUTES
Can you describe the process you used to register the new Search Attribute to your cluster? I am assuming you followed the directions here: https://docs.temporal.io/docs/filter-workflows
Can you also print out the list of registered Search Attributes for your cluster using this command:
That’s the only other file you have to update. Follow the same pattern in that file that was used to register the CustomStringField/CustomBoolField properties to register the properties that you want indexed. For instance, in mappings.properties.Attr.properties, add an entry for each property. Example:
"ProcessState": { "type": "keyword"},
We acknowledge that this is not the best experience in the world. We are looking at how to make this intuitive / easier in the future.
I am trying to add a customer search attribute. Is there any new way other than adding attributes in the file schema/elasticsearch/visibility/index_template.json ?