Im trying to use a suggest feature with 0.90.0.RC1 build. According to this issue https://github.com/elasticsearch/elasticsearch/issues/2774 and this documentation ( http://www.elasticsearch.org/guide/reference/api/search/suggest.html its not mention new suggest endpoint..) im trying to execute simple fuzzy
request.
Here requests that i tried, and none of them worked :
to _search
{"suggest" : {
"my-suggest-1" : {
"text" : "the amsterdma meetpu",
"fuzzy" : {
"field" : "product_description_auto"
}
}
}
}
Result:
Got an exception:
ElasticSearchIllegalArgumentException[Suggester[fuzzy] not supported]; }
Full result
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]
Full result
{
"_shards": {
"total": 5,
"successful": 0,
"failed": 5,
"failures": [{
"index": "haystack",
"shard": 4,
"reason": "BroadcastShardOperationFailedException[[haystack][4] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 0,
"reason": "BroadcastShardOperationFailedException[[haystack][0] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 1,
"reason": "BroadcastShardOperationFailedException[[haystack][1] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 2,
"reason": "BroadcastShardOperationFailedException[[haystack][2] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 3,
"reason": "BroadcastShardOperationFailedException[[haystack][3] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}]
}
}
So here even a error format differs from the _search. Is it intentionally
or its a bug?
Next i tried following request:
Get ElasticSearchIllegalArgumentException[Suggester[fuzzy] not supported]
Which is looking exactly like exception from first query to _search. But
here its presented again as a list of 5 nodes instead of one errror.
So.. what query is right for suggest, what i missed? and what happening
with error format?
hey, I think the documetation is out of date. I renamed 'fuzzy' to 'term'
suggester in beta1.
I will update the documentation tomorrow hopefully.
sorry for the inconvenience.
simon
On Thursday, March 21, 2013 10:10:36 PM UTC+1, Dmitry Molotkov wrote:
Im trying to use a suggest feature with 0.90.0.RC1 build. According to this issue https://github.com/elasticsearch/elasticsearch/issues/2774 and this documentation ( http://www.elasticsearch.org/guide/reference/api/search/suggest.html its not mention new suggest endpoint..) im trying to execute simple fuzzy
request.
Here requests that i tried, and none of them worked :
to _search
{"suggest" : {
"my-suggest-1" : {
"text" : "the amsterdma meetpu",
"fuzzy" : {
"field" : "product_description_auto"
}
}
}
}
Result:
Got an exception:
ElasticSearchIllegalArgumentException[Suggester[fuzzy] not supported]; }
Full result
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]
Full result
{
"_shards": {
"total": 5,
"successful": 0,
"failed": 5,
"failures": [{
"index": "haystack",
"shard": 4,
"reason": "BroadcastShardOperationFailedException[[haystack][4] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 0,
"reason": "BroadcastShardOperationFailedException[[haystack][0] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 1,
"reason": "BroadcastShardOperationFailedException[[haystack][1] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 2,
"reason": "BroadcastShardOperationFailedException[[haystack][2] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 3,
"reason": "BroadcastShardOperationFailedException[[haystack][3] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}]
}
}
So here even a error format differs from the _search. Is it intentionally
or its a bug?
Next i tried following request:
Get ElasticSearchIllegalArgumentException[Suggester[fuzzy] not supported]
Which is looking exactly like exception from first query to _search. But
here its presented again as a list of 5 nodes instead of one errror.
So.. what query is right for suggest, what i missed? and what happening
with error format?
On Thursday, March 21, 2013 11:07:56 PM UTC+1, simonw wrote:
hey, I think the documetation is out of date. I renamed 'fuzzy' to 'term'
suggester in beta1.
I will update the documentation tomorrow hopefully.
sorry for the inconvenience.
simon
On Thursday, March 21, 2013 10:10:36 PM UTC+1, Dmitry Molotkov wrote:
Im trying to use a suggest feature with 0.90.0.RC1 build. According to this issue https://github.com/elasticsearch/elasticsearch/issues/2774and this documentation ( http://www.elasticsearch.org/guide/reference/api/search/suggest.html its not mention new suggest endpoint..) im trying to execute simple fuzzy
request.
Here requests that i tried, and none of them worked :
to _search
{"suggest" : {
"my-suggest-1" : {
"text" : "the amsterdma meetpu",
"fuzzy" : {
"field" : "product_description_auto"
}
}
}
}
Result:
Got an exception:
ElasticSearchIllegalArgumentException[Suggester[fuzzy] not supported]; }
Full result
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]
Full result
{
"_shards": {
"total": 5,
"successful": 0,
"failed": 5,
"failures": [{
"index": "haystack",
"shard": 4,
"reason": "BroadcastShardOperationFailedException[[haystack][4] ];
nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 0,
"reason": "BroadcastShardOperationFailedException[[haystack][0]
]; nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 1,
"reason": "BroadcastShardOperationFailedException[[haystack][1]
]; nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 2,
"reason": "BroadcastShardOperationFailedException[[haystack][2]
]; nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}, {
"index": "haystack",
"shard": 3,
"reason": "BroadcastShardOperationFailedException[[haystack][3]
]; nested: ElasticSearchException[failed to execute suggest]; nested:
ElasticSearchIllegalArgumentException[[suggest] does not support [field]]; "
}]
}
}
So here even a error format differs from the _search. Is it intentionally
or its a bug?
Next i tried following request:
Get ElasticSearchIllegalArgumentException[Suggester[fuzzy] not supported]
Which is looking exactly like exception from first query to _search. But
here its presented again as a list of 5 nodes instead of one errror.
So.. what query is right for suggest, what i missed? and what happening
with error format?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.