Facets throwing exception in 1.0.1


(sagarit2) #1

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 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.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #2

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 :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 11 avr. 2014 à 07:09, sagarl 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' -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.
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 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.
For more options, visit https://groups.google.com/d/optout.


(sagarit2) #3

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.

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_deprecations.html

Field Query has been removed.

HTH

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

Le 11 avr. 2014 à 07:09, sagarl <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' -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 <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/72fdcb40-a8de-48b3-9294-aecf8d0af4ac%40googlegroups.comhttps://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.

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


(system) #4