Creating multiple query_string

Hi,
I want query data form elasticsearch based on some value of the string, i wrote following query for that.

GET _search
{
  "query": {
    "bool": {
      "filter":{
        "bool":{
          "should": [
        {
          "query_string": {
            "default_field": "log_mesage",
            "query": "UE CTX REL-RLF", 
            "default_operator": "AND"
          }
        },
        {
          "query_string": {
            "default_field": "log_message",
            "query": "uecc_s1ap_build_and_send_enb_ue_ctx_release_req AND S_TMSI.MMEC"
          }
        }
      ], "minimum_should_match": 1
    }
        }
      }
  }
}

When i am running this query, i am only getting result for the 2nd query i.e "query": "uecc_s1ap_build_and_send_enb_ue_ctx_release_req AND S_TMSI.MMEC" .

What does a document look like? What is the mapping?

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

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