Search pattern in DQL

i need to find the below pattern from my application logs, when i put the below string in my DQL as provide below . i'm not getting any results. What should be the correct search query.

Sting to be searched : "Error - Code - 6004"

//
"multi_match": {
"type": "phrase",
"query": "Error - Code - 6004",
"lenient": true
}
//

Could you share sample elasticsearch document and Index mapping? Seems there is no terms like Error - Code - 6004.

below is my DOC , i'm trying to search in my logs for Error - Code - 6001
but the Query is not working

Error - Code - 6001, UsrMsg - Received httpError while calling Get API

what should be corrected

What is your index mappings looks like ? You can get index mapping with below query -

GET my-index/_mapping

hi Ashish, what i could see is that our application logging is not 100% perfect today on elastic.
can you advise with the query that can be used when if i want to search for all occurrences of "Error - Code - 6004" in my document