# Shingles with Simple Query String

**URL:** <https://discuss.elastic.co/t/shingles-with-simple-query-string/37522>\
**Category:** Elasticsearch\
**Created:** [December 17, 2015, 11:32pm UTC](https://discuss.elastic.co/t/shingles-with-simple-query-string/37522 "2015-12-17T23:32:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akoumjian](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akoumjian/32/6710_2.png) [@akoumjian](https://discuss.elastic.co/u/akoumjian)\
**Post date:** [December 17, 2015, 11:32pm UTC](https://discuss.elastic.co/t/shingles-with-simple-query-string/37522/1 "2015-12-17T23:32:09Z")

</div>

I am wondering if it is possible to use shingles with the Simple Query String query. I am performing the following search:

```
{
    "query": {
        "bool": {
            "must": [
                {
                    "simple_query_string": {
                        "analyzer": "shingle_analyzer",
                        "fields": [
                            "text_2"
                        ],
                        "lenient": "false",
                        "default_operator": "and",
                        "query": "porsches small red"
                    }
                }
            ]
        }
    }
}

```

Now, I have a document with text\_2 = `small red porsches`. Since I am using the AND operator, I would expect my document to NOT match, since the above query should produce a shingle of "porsches small red", which is a different order. However, when I look at the match explanation I am only seeing the single word tokens "red" "small" "porsche", which of course match.

Is SQS incompatible with shingles?

---

<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:** [July 5, 2017, 11:30pm UTC](https://discuss.elastic.co/t/shingles-with-simple-query-string/37522/2 "2017-07-05T23:30:04Z")

</div>


