You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've registered a custom search attribute of type "KEYWORD" in our backend (Cadence server with Elastic Search). Let's call it CustomWorkflowName.
Using the Advanced search mode in the cadence-web UI, I can do searches like: CustomWorkflowName="nyse_stocks" and get results back.
I intend to add a search input in the Basic search mode to search against this attribute. What changes will I need to make?
I've tried adding a new "customWorkflowNameFilter" (object with key customWorkflowName and value q.customWorkflowName) in routes.js and also made the relevant updates in the shared.thrift idl file but haven't been able to make this work.
Looking at the input element for "Workflow Name" -- it seems like this is the underlying mapping: q.workflowName -> name (key in typeFilter) -> WorkflowTypeFilter (struct in shared.thrift)
WorkflowType attribute is not referenced anywhere and yet we get results for that attribute as expected since there seems to be a mapping between WorkflowType and WorkflowTypeFilter. Where is this mapping defined?
The text was updated successfully, but these errors were encountered:
It's because the underlying API which the basic search relies on does not use search attributes. You would need to update the API in /server to use the list API and make the corresponding changes there. These APIs are not 1-to-1 so you would need to craft the relevant params into a query string to make this working.
basic search will now use list api if elastic search (or advanced search) is supported as part of v3.27.0 release. Otherwise will fallback to open / closed APIs. Closing as this should now work.
We've registered a custom search attribute of type "KEYWORD" in our backend (Cadence server with Elastic Search). Let's call it
CustomWorkflowName
.Using the Advanced search mode in the cadence-web UI, I can do searches like:
CustomWorkflowName="nyse_stocks"
and get results back.I intend to add a search input in the Basic search mode to search against this attribute. What changes will I need to make?
I've tried adding a new "customWorkflowNameFilter" (object with key
customWorkflowName
and valueq.customWorkflowName
) in routes.js and also made the relevant updates in the shared.thrift idl file but haven't been able to make this work.Looking at the input element for "Workflow Name" -- it seems like this is the underlying mapping:
q.workflowName
->name
(key intypeFilter
) ->WorkflowTypeFilter
(struct in shared.thrift)WorkflowType
attribute is not referenced anywhere and yet we get results for that attribute as expected since there seems to be a mapping betweenWorkflowType
andWorkflowTypeFilter
. Where is this mapping defined?The text was updated successfully, but these errors were encountered: