0
curl -XPUT localhost:9200/alpha/_mapping/gremlin -d @company_info_mapping.json
は、メッセージRoot mapping definition has unsupported parameters
で400
を返します。ここでインデックス中にサポートされていないパラメータのインデックス
は、マッピングファイルです:
{
"settings": {
"index.mapping.ignore_malformed": true,
"analysis" : {
"index_analyzer": {
"my_index_analyzer" : {
"type": "custom",
"tokenizer" : "standard",
"filter" : ["lowercase", "mynGram"]
}
},
"search_analyzer": {
"my_search_analyzer": {
"type": "custom",
"tokenizer": "standard",
"filter" : ["standard", "lowercase", "mynGram"]
}
},
"filter": {
"mynGram": {
"type": "nGram",
"min_gram": 2,
"max_gram": 30
}
}
}
},
"mappings": {
"company_info": {
"properties": {
"company" : {"type" : "string"},
"description": {"type": "string"},
"founded": {"type": "string"},
"headquartes": {"type": "string"},
"industry": {"type": "string"},
"numberOfEmployees": {"type": "string"},
"size": {"type": "string"},
"specialties": {"type": "string"},
"typ": {"type" : "string"},
"website": {"type" : "string"},
"domain" : {"type": "string"},
"link": {"type" : "string"},
"linkedinId": {"type": "string"},
"linkedinUrl": {"type": "string"},
"title": {"type": "string"},
"people":{"properties":{"email":{"type":"string"},"id":{"type":"string"},"linkedinId":{"type":"string"},"linkedinUrl":{"type":"string"},"name":{"type":"string"},"title":{"type":"string"},"twitter":{"type":"string"},"verifiedEmail":{"type":"string"}}}
}
}
}
}
これはすべてエラーの説明ですか?あなたは、例外のための弾性検索サーバー側のログを見ましたか? –
gremlinとは何ですか?どのようにインデックスを作成しましたか? – ChintanShah25
@ ChintanShah25 Gremlinは、私のクラスターをセットアップして、物事で遊んでいる間に、帽子から引き出した言葉です。上記のスクリプトは、 'settings'セクションなしでインデックスを作成するために使用したものです。 – TheM00s3