Your choice of Analyzer dictates what characters are kept in the index and what characters are punctuation that can be thrown away. This blog is old but provides some background.
If your strings are very short structured fields like a product code you may decide an Analyzer is not useful and want to use a simpler keyword field that keeps all the characters.
The choice between matching in text fields and matching keyword is a choice between matching words or full-values.
If your content doesn't hold what most people would consider to be a word ("quick brown foxes" etc) then the text field is probably not for you. No one can agree where one word begins and one word ends so your index and the values people type into the search engine are not underpinned by a shared understanding of the vocabulary.
So, we switched tack to the keyword field, treating the string as a whole value. You didn't match because your query is missing part of the value ("Msg"). You will need to use a RegExp or wildcard query to declare that you're only providing part of a value.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.