# Operator "and" does not work

**URL:** <https://discuss.elastic.co/t/operator-and-does-not-work/85997>\
**Category:** Elasticsearch\
**Created:** [May 16, 2017, 6:08pm UTC](https://discuss.elastic.co/t/operator-and-does-not-work/85997 "2017-05-16T18:08:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hairinwind](https://avatars.discourse-cdn.com/v4/letter/h/b487fb/32.png) [@hairinwind](https://discuss.elastic.co/u/hairinwind)\
**Post date:** [May 16, 2017, 6:08pm UTC](https://discuss.elastic.co/t/operator-and-does-not-work/85997/1 "2017-05-16T18:08:05Z")

</div>

Here is the query

```auto
{
  "query": {
    "match": {
      "english": {
        "query" : "all this", 
        "operator": "and"
      }
    }
  }
}

```

I expect the result contains "both" all and "this".  
But the result can contain only "all", like this

```
"hits": [
      {
        "_index": "words_v1",
        "_type": "words",
        "_id": "AVv5tQ4oIOyYfPowNbTQ",
        "_score": 4.9961786,
        "_source": {
          "english": "It's all I can do"
          "sourceTitle": "Arrival"
        }
      }

```

Any idea why the operator "and" does not work?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 16, 2017, 6:21pm UTC](https://discuss.elastic.co/t/operator-and-does-not-work/85997/2 "2017-05-16T18:21:11Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

I'd say that `this` is probably a stopword and skipped by the standard analyzer.  
So only `all` is checked.

Check what the `_analyze` API is giving.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 13, 2017, 6:21pm UTC](https://discuss.elastic.co/t/operator-and-does-not-work/85997/3 "2017-06-13T18:21:25Z")

</div>

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