2016-05-30 89 views
0

每當我嘗試給出下面的映射時,都會收到錯誤。根映射定義具有不受支持的參數

有什麼你需要做的「copy_to」。

PUT myindex/mytype/_mapping 
{ 
    "mappings": { 
    "properties": { 
    "manufacturer": { 
    "type": "string", 
    "copy_to": "full_make_model_name" 
    }, 
    "name": { 
    "type": "string", 
    "copy_to": "full_make_model_name" 
    }, 
    "full_make_model_name": { 
    "type": "string", 
    "index": "analyzed" 
    } 
} 
} 
} 

回答

1

嘗試:

PUT myindex/_mapping/mytype 
{ 
    "properties": { 
    "manufacturer": { 
    "type": "string", 
    "copy_to": "full_make_model_name" 
    }, 
    "name": { 
    "type": "string", 
    "copy_to": "full_make_model_name" 
    }, 
    "full_make_model_name": { 
    "type": "string", 
    "index": "analyzed" 
    } 
} 
} 

https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-put-mapping.html#indices-put-mapping

+0

這也不會爲我工作。 :( – sunkuet02

+0

你是否得到相同的錯誤? – alpert

+0

是的。同樣的錯誤!:( – sunkuet02

相關問題