# Opensearch ignoring query

**URL:** <https://forum.opensearch.org/t/opensearch-ignoring-query/17087>\
**Category:** OpenSearch\
**Tags:** troubleshoot\
**Created:** [December 14, 2023, 1:27am UTC](https://forum.opensearch.org/t/opensearch-ignoring-query/17087 "2023-12-14T01:27:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![open\_ardvaark](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@open\_ardvaark](https://forum.opensearch.org/u/open_ardvaark)\
**Post date:** [December 14, 2023, 1:27am UTC](https://forum.opensearch.org/t/opensearch-ignoring-query/17087/1 "2023-12-14T01:27:59Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch V2.6

**Describe the issue** :  
when I run this query through the Explain API, the explanation that comes back seems to ignore the query string totally.

````auto
{
    "query": {
        "bool": {
            "must": [
                {
                    "match_phrase": {
                        "<param1>": "value"
                    }
                },
                {
                    "bool": {
                        "must_not": [
                            {
                                "query_string": {
                                    "query": "<param2>: value2 AND <param3>: >=now-2w"
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}```
````

---

<div class="post-metadata">

**Author:** ![gaobinlong](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/gaobinlong/32/5242_2.png) [@gaobinlong](https://forum.opensearch.org/u/gaobinlong)\
**Post date:** [December 20, 2023, 4:54am UTC](https://forum.opensearch.org/t/opensearch-ignoring-query/17087/2 "2023-12-20T04:54:48Z")

</div>

Can you show the response of the explain API?
