Hi @Anantha Subramanian ,
Thanks for bringing this to our attention. You should be able to search terms with hyphen in Azure cognitive search.
Azure Cognitive Search scans for whole tokenized terms in the index and won't find a match on a partial term unless you include wildcard placeholder operators (* and ?) , or format the query as a regular expression which is what you did for your query
query - Kerin-A*
Are you using any specific analyzer for this search?
Based on this Azure doc a possible solution is to "invoke an analyzer during indexing that preserves a complete string, including spaces and special characters if necessary, so that you can include the spaces and characters in your query string. Likewise, having a complete string that is not tokenized into smaller parts enables pattern matching for "starts with" or "ends with" queries, where the pattern you provide can be evaluated against a term that is not transformed by lexical analysis.
Creating an additional field for an intact string, plus using a content-preserving analyzer that emits whole-term tokens, is the solution for both pattern matching and for matching on query strings that include special characters."
Hope that helps
-Grace