Simple_query_string and query_string not working as expected

I have a title field in document
1 document has $kitkat as value and another has "title" : "Testing Special_character Elastic Search in $reference entry search"

{
  "query": {
    "bool": {
      "must": [
        
        {
          "query_string": {
            "query": "$kitka* \\$referen*",
            "fields": ["title", "title.raw", "title.whitespace_split"]
          }
        }
      ]
    }
  }
}

Fetches only one document matching for $kitka*
But if i pass $ref* then it fetches both document. Till //$refer* it works, The moment i add //$refere it is not working. what is the reason?

And I have a document with "title" : "Toddler- $kitkat @taste &roll ^yart !here #you %ice ^oops *jam (pot) [beat] pep |old {jet} `egg /lol",

{
  "query": {
    "bool": {
      "must": [
        
        {
          "simple_query_string": { // or query_string
            "query": "jet\\}* pot\\)* beat\\]*",
            "fields": ["title", "title.raw", "title.whitespace_split"]
          }
        }
      ]
    }
  }
}

also not fetching the document.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.