# \[10:20\] unable to parse BaseAggregationBuilder with name \[query\]: parser not found

**URL:** <https://discuss.elastic.co/t/10-20-unable-to-parse-baseaggregationbuilder-with-name-query-parser-not-found/177220>\
**Category:** Elasticsearch\
**Created:** [April 17, 2019, 7:40am UTC](https://discuss.elastic.co/t/10-20-unable-to-parse-baseaggregationbuilder-with-name-query-parser-not-found/177220 "2019-04-17T07:40:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Kayasth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_kayasth/32/57807_2.png) [@Sagar\_Kayasth](https://discuss.elastic.co/u/Sagar_Kayasth)\
**Post date:** [April 17, 2019, 7:40am UTC](https://discuss.elastic.co/t/10-20-unable-to-parse-baseaggregationbuilder-with-name-query-parser-not-found/177220/1 "2019-04-17T07:40:39Z")

</div>

Hi everyone,

I'm facing a strange issue when performing a search on an nested field on multiple fields with aggregation.  
{  
"size": 0,  
"aggs": {  
"Attributes": {  
"nested": {  
"path": "Attributes"  
},  
"aggs": {  
"Attributes-filtered": {  
"query": {  
"bool": {  
"must": {  
"multi\_match": {  
"query": "sofa",  
"type": "best\_fields",  
"fields": ["Name", "FullDescription", "ShortDescription", "Categories.Name"]  
}  
},  
"filter": { "bool": {} }  
}  
},  
"aggs": {  
"Attr\_group": {  
"terms": {  
"field": "Attributes.Name.keyword"  
},  
"aggs": {  
"Opctions": {  
"terms": {  
"field": "Attributes.AttributeOptions.Name.keyword",  
"size": 100  
}  
}  
}  
}  
}  
}  
}  
}  
}  
}  
Thanks in advance for any help,

Sincerely,  
Sagar

---

<div class="post-metadata">

**Author:** ![Sagar\_Kayasth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_kayasth/32/57807_2.png) [@Sagar\_Kayasth](https://discuss.elastic.co/u/Sagar_Kayasth)\
**Post date:** [April 17, 2019, 7:49am UTC](https://discuss.elastic.co/t/10-20-unable-to-parse-baseaggregationbuilder-with-name-query-parser-not-found/177220/2 "2019-04-17T07:49:13Z")

</div>

When i used below code:  
`{ "size": 0, "aggs": { "Attributes": { "nested": { "path": "Attributes" }, "aggs": { "Attributes-filtered": { "filter": { "bool": { "must": [{ "multi_match": { "query": "sofa", "type": "best_fields", "fields": ["Name", "FullDescription", "ShortDescription", "Categories.Name"] } }], "filter": { "bool": {} } } }, "aggs": { "Attr_group": { "terms": { "field": "Attributes.Name.keyword" }, "aggs": { "Opctions": { "terms": { "field": "Attributes.AttributeOptions.Name.keyword", "size": 100 } } } } } } } } } }`  
After run this aggregation filtered query i get empty aggregation, and i filter may be not applied.  
`{ "took" : 4, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "skipped" : 0, "failed" : 0 }, "hits" : { "total" : 4194, "max_score" : 0.0, "hits" : [] }, "aggregations" : { "Attributes" : { "meta" : { }, "doc_count" : 40235, "Attributes-filtered" : { "meta" : { }, "doc_count" : 0, "Attr_group" : { "doc_count_error_upper_bound" : 0, "sum_other_doc_count" : 0, "buckets" : [] } } } } }`

---

<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:** [May 15, 2019, 7:49am UTC](https://discuss.elastic.co/t/10-20-unable-to-parse-baseaggregationbuilder-with-name-query-parser-not-found/177220/3 "2019-05-15T07:49:22Z")

</div>

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