# limitFilter is not working

**URL:** <https://discuss.elastic.co/t/limitfilter-is-not-working/8860>\
**Category:** Elasticsearch\
**Created:** [August 27, 2012, 2:40pm UTC](https://discuss.elastic.co/t/limitfilter-is-not-working/8860 "2012-08-27T14:40:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrem/32/2216_2.png) [@adrem](https://discuss.elastic.co/u/adrem)\
**Post date:** [August 27, 2012, 2:40pm UTC](https://discuss.elastic.co/t/limitfilter-is-not-working/8860/1 "2012-08-27T14:40:33Z")

</div>

Hello I have 5 entries matching this query. although I am setting a filter  
to retrieve only 1, I still get all 5 of them:

{  
"query": {  
"bool": {  
"must": [  
{  
"nested": {  
"query": {  
"wildcard": {  
"B.D": "abc346078206426"  
}  
},  
"path": "B"  
}  
},  
{  
"nested": {  
"query": {  
"wildcard": {  
"A.A": "prefix\_\*@foo.com"  
}  
},  
"path": "A"  
}  
}  
]  
}  
},

- "filter": {\*
- "limit": {\*
- 

```
 "value": 1*

```

- }\*
- }\*  
}

--

---

<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, 3:14am UTC](https://discuss.elastic.co/t/limitfilter-is-not-working/8860/2 "2017-07-06T03:14:56Z")

</div>

Closed on July 6, 2017, 3:14am UTC


