ES Browser Version - (2.3) - Nested Query Issues

Hello,

Can anyone point me in the right direction please?

I am using the following query:

"query": {
         bool: {
                must: [
                       {
                         "nested": {
                                    "path": "mlcs",
                                    "query": {
                                     "bool": {
                                              "must": [
                                                       {
                                                        "match": {
                                                                    "mlcs.deviceType": "\"Cheese Meat\""
                                                                 }
                                                       }
                                                      ]
                                             }
                                             }
                                    }
                        }

                       ]


               }

         }

My deviceType field is Analyzed but when i run the following query i get documents that contain both cheese and or meat in the deviceType nested field. I was expecting to just get deviceTypes that match the literal Cheese Meat together.

I have the same query on another index that is not nested and it only brings back docs that match Cheese Meat rather than either OR..

Thanks

I fixed this issue by changing my nested query to this:

"nested": {
                                                    "path": "mlcs",
                                                    "query": {
                                                        "match": {
                                                            "mlcs.deviceType": {
                                                                "query": "\"Cheese Meat\"",
                                                                "operator": "and"
                                                            }
                                                        }

                                                    }
                                                }