How to Search for an Exact Word Match in a ServiceNow Text Field?

TimAnder1
Tera Contributor

I'm trying to search for the exact keyword "ot" in ServiceNow, but I only want results where "ot" appears as a standalone word—not as part of other words like "dot", "hot", etc.

 

I first tried Description contains ot, but it returned too many unrelated matches. I also tried enclosing ot in both single and double quotes, but that returned no results. Finally, I tried using =ot, but that didn't work either.

Is there a way to search for an exact word match in a text field in ServiceNow?

1 ACCEPTED SOLUTION

Tanushree Maiti
Tera Patron

Hi @TimAnder1 

 

Search behavior for exact match is controlled by the com.snc.agent_workspace.global_search.typeahead.exact_match_request_criterion_regex system property.

 

Refer: Global search displays exact matching records 

 

You can check this KB for knowledge: KB0692729 Using keyword search with wildcards 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

View solution in original post

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @TimAnder1 

 

Search behavior for exact match is controlled by the com.snc.agent_workspace.global_search.typeahead.exact_match_request_criterion_regex system property.

 

Refer: Global search displays exact matching records 

 

You can check this KB for knowledge: KB0692729 Using keyword search with wildcards 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti