Hi Team,
I am unable to create search by using elastic API,
the same thing is wokring on ELK5 but not working in ELK6.
Please help.
Please find the below command & error:
curl -H 'Authorization:Basic XXXXXXXXXX' -H 'Content-Type: application/json' --cacer XXXX.pem -s -XPOST https://XXXXXXXXXX:9200/.kibana/search/XXXXXXXXXXXX -d '{"title" : "xxxxxxxxxxxxxxxxx","description" : "XXXXXXXX","hits" : 0,"columns" : [ "_source" ],"sort" : [ "_score", "desc" ],"version" : 1,"kibanaSavedObjectMeta" : {"searchSourceJSON" : "{"index":"*********","query":{"query_string":{"query":"\"XXXXXXXXXXX\" AND \"XXXXXXXXXX\"","analyze_wildcard":true}},"filter":[],"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"":{}},"require_field_match":false,"fragment_size":2147483647}}"} } '
Error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [.kibana_1] as the final mapping would have more than 1 type: [search, doc]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [.kibana_1] as the final mapping would have more than 1 type: [search, doc]"},"status":400}