# Partial workflow id match while using list filter

**URL:** <https://community.temporal.io/t/partial-workflow-id-match-while-using-list-filter/8260>\
**Category:** Community Support\
**Tags:** general-impl, typescript-sdk\
**Created:** [May 16, 2023, 7:05pm UTC](https://community.temporal.io/t/partial-workflow-id-match-while-using-list-filter/8260 "2023-05-16T19:05:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akashsax14](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/akashsax14/32/3373_2.png) [@akashsax14](https://community.temporal.io/u/akashsax14)\
**Post date:** [May 16, 2023, 7:05pm UTC](https://community.temporal.io/t/partial-workflow-id-match-while-using-list-filter/8260/1 "2023-05-16T19:05:25Z")

</div>

Hey, we are looking to get a list of all running workflows using temporal visibility and list filter. Our workflows have workflow id’s that look like abcd-1234-5678. We want to filter all workflows that start with abcd-1234-. As far as I can tell from the docs, this is [not possible](https://docs.temporal.io/visibility#partial-string-match) but just wanted to get a confirmation if i’m missing something?

---

<div class="post-metadata">

**Author:** ![taonic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/taonic/32/5556_2.png) [@taonic](https://community.temporal.io/u/taonic)\
**Post date:** [May 17, 2023, 2:40am UTC](https://community.temporal.io/t/partial-workflow-id-match-while-using-list-filter/8260/2 "2023-05-17T02:40:58Z")

</div>

That’s correct. WorkflowId is indexed with Keyword type which optimizes for exact match performance but lack of partial search support.

---

<div class="post-metadata">

**Author:** ![taonic](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/taonic/32/5556_2.png) [@taonic](https://community.temporal.io/u/taonic)\
**Post date:** [August 9, 2023, 7:02am UTC](https://community.temporal.io/t/partial-workflow-id-match-while-using-list-filter/8260/3 "2023-08-09T07:02:19Z")

</div>

> [@akashsax14](#):
>
> abcd-1234-

I’d like to correct this answer for future reference. Turns out we can apply lexical range on the Keyword type to achieve partial search, e.g.

```auto
WorkflowId between "abcd-1234-" and "abcd-1234-~"

```

Also, if you happen to have workflows with ID, e.g.

abcd100  
abcd101  
.  
.  
abcd199

Search `WorkflowId between "abcd197" and "abcd199"` will return the workflows: abcd197, abcd198 and abcd199
