# ES problem with AND and stop words

**URL:** https://discuss.elastic.co/t/es-problem-with-and-and-stop-words/10758
**Category:** Elasticsearch
**Created:** [February 15, 2013, 6:34pm UTC](https://discuss.elastic.co/t/es-problem-with-and-and-stop-words/10758 "2013-02-15T18:34:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sulemanmubarik](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sulemanmubarik](https://discuss.elastic.co/u/sulemanmubarik)
#### Post date: [February 15, 2013, 6:34pm UTC](https://discuss.elastic.co/t/es-problem-with-and-and-stop-words/10758/1 "2013-02-15T18:34:18Z")

</div>

"{"callBackUrl":"[http://10.120.5.224:54381/Warehouse/CallBack?jobId=","oozieID":"","startDate":1358121600000,"endDate":1360972799999,"countries":[],"languageIds":[],"query](http://10.120.5.224:54381/Warehouse/CallBack?jobId=%22,%22oozieID%22:%22%22,%22startDate%22:1358121600000,%22endDate%22:1360972799999,%22countries%22:%5B%5D,%22languageIds%22:%5B%5D,%22query)":{  
"type": "term", "term":""foo bar" buz"}}"

"{"startDate":1358121600000,"endDate":1360972799999,"countries":[],"languageIds":[],"query":{  
"type": "term", "term":""foo bar" buz"}}"

"{"startDate":1358121600000,"endDate":1360972799999,"countries":[],"languageIds":[],"query":{  
"type": "term", "term":"foo bar"}}"

Just a Reminder

org.elasticsearch.index.query. MultiMatchQueryBuilder

Hi

I have this query

{

```
"filtered": {

    "query": {

        "constant_score": {

            "query": {

                "bool": {

                    "must": [

                        {

                            "multi_match": {

                                "query": "twitter",

                                "fields": [

                                    "authorName",

                                    "authorTags",

                                    "cnt_en"

                                ],

                                "type": "boolean",

                                "operator": "AND",

                                "use_dis_max": false

                            }

                        },

                        {

                            "multi_match": {

                                "query": "the",

                                "fields": [

                                    "authorName",

                                    "authorTags",

                                    "cnt_en"

                                ],

                                "type": "boolean",

                                "operator": "AND",

                                "use_dis_max": false

                            }

                        }

                    ]

                }

            },

            "boost": 1

        }

    },

    "filter": {

        "and": {

            "filters": [

                {

                    "numeric_range": {

                        "publishedDate": {

                            "from": 1358208000000,

                            "to": 1361059199999,

                            "include_lower": true,

                            "include_upper": true

                        }

                    }

                }

            ]

        }

    }

}

```

}

“the ” is a stop word in query

When I send this to ES I am applying custom analysis and in it I am  
applying stop word when ES look this it get all result for twitter but when  
it intersect it with other part “the” there are no result as it was removed  
by stop word so I get no result but I want to get same number of result as  
I get only for twitter . is there a way that ES don’t apply intersect when  
it find a stop word or can it remove “AND”

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:51am UTC](https://discuss.elastic.co/t/es-problem-with-and-and-stop-words/10758/2 "2017-07-06T02:51:17Z")

</div>


