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 [email protected].
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.

Reply via email to