Excheption in suggester responce

Hi!
I try test elasticsearch suggester, but i got strange error.

user@user:/user/esconfig # curl -X POST
'localhost:9200/dwh_direct/_suggest?pretty' -d @suggester
{
"_shards" : {
"total" : 5,
"successful" : 0,
"failed" : 5,
"failures" : [ {
"index" : "dwh_direct",
"shard" : 0,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][0] ];
nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
}, {
"index" : "dwh_direct",
"shard" : 1,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][1] ];
nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
}, {
"index" : "dwh_direct",
"shard" : 2,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][2] ];
nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
}, {
"index" : "dwh_direct",
"shard" : 3,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][3] ];
nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
} ]
}
}

user@user:/user/esconfig # more suggester
{
"my-suggest" : {
"text" : "co",
"completion" : {
"field" : "name"
}
}
}

Is it bug in elasticsearch or i made mistake in configuration or query?

--

Maxim Krasovsky

--
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/465403c8-6f5a-4151-9c0f-e6e490fdfe13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hello Maxim ,

Can you show the schema and a sample data that you have indexed.

Thanks
Vineeth

On Mon, Aug 18, 2014 at 3:31 PM, makr@ciklum.com wrote:

Hi!
I try test elasticsearch suggester, but i got strange error.

user@user:/user/esconfig # curl -X POST
'localhost:9200/dwh_direct/_suggest?pretty' -d @suggester
{
"_shards" : {
"total" : 5,
"successful" : 0,
"failed" : 5,
"failures" : [ {
"index" : "dwh_direct",
"shard" : 0,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][0]
]; nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
}, {
"index" : "dwh_direct",
"shard" : 1,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][1]
]; nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
}, {
"index" : "dwh_direct",
"shard" : 2,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][2]
]; nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
}, {
"index" : "dwh_direct",
"shard" : 3,
"reason" : "BroadcastShardOperationFailedException[[dwh_direct][3]
]; nested: ElasticsearchException[failed to execute suggest]; nested:
ClassCastException[org.elasticsearch.index.mapper.core.StringFieldMapper
cannot be cast to
org.elasticsearch.index.mapper.core.CompletionFieldMapper]; "
} ]
}
}

user@user:/user/esconfig # more suggester
{
"my-suggest" : {
"text" : "co",
"completion" : {
"field" : "name"
}
}
}

Is it bug in elasticsearch or i made mistake in configuration or query?

--

Maxim Krasovsky

--
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/465403c8-6f5a-4151-9c0f-e6e490fdfe13%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/465403c8-6f5a-4151-9c0f-e6e490fdfe13%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/CAGdPd5%3DMQmX788p%3Db0G%2Bqk_z6wwsA9HBtLu66fLRoKxvupRo%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.