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.

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 <[email protected]> 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' -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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.com.
> For more options, visit 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/9B65B6B3-F6BC-4888-BF61-485820460CEA%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to