# Facets throwing exception in 1.0.1

**URL:** <https://discuss.elastic.co/t/facets-throwing-exception-in-1-0-1/16947>\
**Category:** Elasticsearch\
**Created:** [April 11, 2014, 5:09am UTC](https://discuss.elastic.co/t/facets-throwing-exception-in-1-0-1/16947 "2014-04-11T05:09:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagarit2](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sagarit2](https://discuss.elastic.co/u/sagarit2)\
**Post date:** [April 11, 2014, 5:09am UTC](https://discuss.elastic.co/t/facets-throwing-exception-in-1-0-1/16947/1 "2014-04-11T05:09:54Z")

</div>

Hi,

Following facets query code is working fine in 0.90.3 but it's throwing  
exception in 1.0.1.

curl -XGET  
'[http://elasticsearch-0903.xxxxx.net:9200/index123-\*/\_search?pretty](http://elasticsearch-0903.xxxxx.net:9200/index123-*/_search?pretty)' -d '{

{  
"facets": {  
"terms": {  
"terms": {  
"field": "events.actingUserName",  
"size": 10,  
"order": "count",  
"exclude": []  
},  
"facet\_filter": {  
"fquery": {  
"query": {  
"filtered": {  
"query": {  
"bool": {  
"should": [  
{  
"query\_string": {  
"query": "\*"  
}  
}  
]  
}  
},  
"filter": {  
"bool": {  
"must": [  
{  
"match\_all": {}  
},  
{  
"fquery": {  
"query": {  
"field": {

"events.actingUserName": {  
"query":  
""JohnDoe""  
}  
}  
},  
"\_cache": true  
}  
},  
{  
"range": {  
"id.time": {  
"from": 1389396651238,  
"to": 1397172651239  
}  
}  
},  
{  
"bool": {  
"must": [  
{  
"match\_all": {}  
}  
]  
}  
}  
]  
}  
}  
}  
}  
}  
}  
}  
},  
"size": 0  
}'

Exception is as follows:

"error": "SearchPhaseExecutionException[Failed to execute phase [query],  
all shards failed; shardFailures ..... Parse Failure [Failed to parse  
source ....

May I know if anything has changed for facets in 1.0.1 ?

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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [April 11, 2014, 5:18am UTC](https://discuss.elastic.co/t/facets-throwing-exception-in-1-0-1/16947/2 "2014-04-11T05:18:30Z")

</div>

You should read in details the error.  
Although you did not paste all the error, I think your concern is not with facets but with queries.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Field Query has been removed.

HTH

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 11 avr. 2014 à 07:09, sagarl [sagarit2@gmail.com](mailto:sagarit2@gmail.com) a écrit :
> 
> Hi,
> 
> Following facets query code is working fine in 0.90.3 but it's throwing exception in 1.0.1.
> 
> curl -XGET '[http://elasticsearch-0903.xxxxx.net:9200/index123-\*/\_search?pretty](http://elasticsearch-0903.xxxxx.net:9200/index123-*/_search?pretty)' -d '{
> 
> {  
> "facets": {  
> "terms": {  
> "terms": {  
> "field": "events.actingUserName",  
> "size": 10,  
> "order": "count",  
> "exclude":   
> },  
> "facet\_filter": {  
> "fquery": {  
> "query": {  
> "filtered": {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "query\_string": {  
> "query": "\*"  
> }  
> }  
> ]  
> }  
> },  
> "filter": {  
> "bool": {  
> "must": [  
> {  
> "match\_all": {}  
> },  
> {  
> "fquery": {  
> "query": {  
> "field": {  
> "events.actingUserName": {  
> "query": ""JohnDoe""  
> }  
> }  
> },  
> "\_cache": true  
> }  
> },  
> {  
> "range": {  
> "id.time": {  
> "from": 1389396651238,  
> "to": 1397172651239  
> }  
> }  
> },  
> {  
> "bool": {  
> "must": [  
> {  
> "match\_all": {}  
> }  
> ]  
> }  
> }  
> ]  
> }  
> }  
> }  
> }  
> }  
> }  
> }  
> },  
> "size": 0  
> }'
> 
> Exception is as follows:
> 
> "error": "SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures ..... Parse Failure [Failed to parse source ....
> 
> May I know if anything has changed for facets in 1.0.1 ?
> 
> ## 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).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9B65B6B3-F6BC-4888-BF61-485820460CEA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/9B65B6B3-F6BC-4888-BF61-485820460CEA%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![sagarit2](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sagarit2](https://discuss.elastic.co/u/sagarit2)\
**Post date:** [April 11, 2014, 6:32am UTC](https://discuss.elastic.co/t/facets-throwing-exception-in-1-0-1/16947/3 "2014-04-11T06:32:53Z")

</div>

Thanks David.

On Thursday, April 10, 2014 10:18:30 PM UTC-7, David Pilato wrote:

> You should read in details the error.  
> Although you did not paste all the error, I think your concern is not with  
> facets but with queries.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_deprecations.html)
> 
> Field Query has been removed.
> 
> HTH
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 11 avr. 2014 à 07:09, sagarl \<[saga...@gmail.com](mailto:saga...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hi,
> 
> Following facets query code is working fine in 0.90.3 but it's throwing  
> exception in 1.0.1.
> 
> curl -XGET '  
> [http://elasticsearch-0903.xxxxx.net:9200/index123-\*/\_search?pretty](http://elasticsearch-0903.xxxxx.net:9200/index123-*/_search?pretty)' -d '{
> 
> {  
> "facets": {  
> "terms": {  
> "terms": {  
> "field": "events.actingUserName",  
> "size": 10,  
> "order": "count",  
> "exclude":   
> },  
> "facet\_filter": {  
> "fquery": {  
> "query": {  
> "filtered": {  
> "query": {  
> "bool": {  
> "should": [  
> {  
> "query\_string": {  
> "query": "\*"  
> }  
> }  
> ]  
> }  
> },  
> "filter": {  
> "bool": {  
> "must": [  
> {  
> "match\_all": {}  
> },  
> {  
> "fquery": {  
> "query": {  
> "field": {
> 
> "events.actingUserName": {  
> "query":  
> ""JohnDoe""  
> }  
> }  
> },  
> "\_cache": true  
> }  
> },  
> {  
> "range": {  
> "id.time": {  
> "from": 1389396651238,  
> "to": 1397172651239  
> }  
> }  
> },  
> {  
> "bool": {  
> "must": [  
> {  
> "match\_all": {}  
> }  
> ]  
> }  
> }  
> ]  
> }  
> }  
> }  
> }  
> }  
> }  
> }  
> },  
> "size": 0  
> }'
> 
> Exception is as follows:
> 
> "error": "SearchPhaseExecutionException[Failed to execute phase [query],  
> all shards failed; shardFailures ..... Parse Failure [Failed to parse  
> source ....
> 
> May I know if anything has changed for facets in 1.0.1 ?
> 
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fed96f95-66fd-441e-86d6-b5778313b3d9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fed96f95-66fd-441e-86d6-b5778313b3d9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:36am UTC](https://discuss.elastic.co/t/facets-throwing-exception-in-1-0-1/16947/4 "2017-07-06T01:36:35Z")

</div>


