How to Perform Exact Match Search for a search key in Bonita?

Hello,

In our project, we use a search key for the variable “name”. When searching in the list of cases for the name “test ab”, I would like to retrieve only the case with that exact name. However, the current search results include all names that start with “test” as well as those that start with “ab”.

Is there a way to configure the search to return only cases that exactly have the name “test ab”? We are using version 2022.2 of Bonita, and word-based search is disabled.

Thank you!

1 Like

Hi @kaoutar, Do you use this API? → …/API/bpm/case

If yes, may be your API url is: ../API/bpm/case?f=name=test ab or ../API/bpm/case?f=name%3dtest%20ab

1 Like

Yes it is, and for my example the API url is …/API/bpm/case?c=10&p=0&d=processDefinitionId&d=started_by&d=startedBySubstitute&n=activeFlowNodes&n=failedFlowNodes&t=1724320947167&s=TEST%ab

1 Like

You can change your API url from &s=TEST%ab to &f=name%3dTEST%ab

…/API/bpm/case
?c=10&p=0&d=processDefinitionId
&d=started_by&d=startedBySubstitute
&n=activeFlowNodes&n=failedFlowNodes
&t=1724320947167
&f=name%3dTEST%ab

Example in my case:

Bonita 2023.1-u0

1 Like

with the f param in url, I’m not getting exactly the same search term

1 Like

Hi, I don’t get it. Can you explain more?

Hi, using the API with param ‘f=name%3dTEST%ab’ instead of ‘s=TEST%ab’. I get this message “The server has not found anything matching the request URI” even though there is a case with the name "TEST ab ”.

1 Like