Environment
Windows 7 64bit
Elasticsearch, kibana, Logstash (5.0.0)
I have been trying to work with an example of a json array in the Elastic documentation but being new I'm not able to load it.
Attach json example
Attached index
Error when attempting to load via kibana
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unknown setting [index.lists.0.description] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
}
],
"type": "illegal_argument_exception",
"reason": "unknown setting [index.lists.0.description] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
},
"status": 400
}
So understanding that I'm fairly green with this, can anyone please provide me steps to correctly set this example up in elastic.
Have you tried removing the index_name clause associated with the property "tags"?
I'm not sure if this property is defined in an index mapping context.
According to the exception, it's something wrong with the description.type property. Just to test it, have you tried removing the types properties of the inner object. It doesn't seem to be the cause, but just to verify it.
Thought I'd provide an update on this
Created my index
PUT /test
{
"mappings": {
"tweet": {
"properties": {
"message": {"type": "text"},
"tags": {"type": "text"},
"content": {
"properties": {
"name": {"type": "text"},
"msgbody": {"type": "text"}
}
}
}
}
}
}
Then added content
JSON content
{"index":{"_index":"tweets", "_type":"content", "_id": "2"}}
{"message":"I've now added a second tweet...", "tags":"elasticsearch wow yahoo", "contents.name":"prog_list", "contents.msgbody":"programming list"}
Actually it was a bit more than that. I used mappings in before the attribute and yes text seems to have resolved the other issues.
The link you provided was crucial to this resolution so thanks, greatly appreciate the tip.
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.