弹性搜索csv河模块无法正常工作

时间:2015-10-09 16:30:48

标签: elasticsearch elasticsearch-plugin

我试图在elasticsearch

中索引csv文件
curl -XPUT localhost:9200/_river/my_csv_river/_meta -d '
{
    "type" : "csv",
    "csv_file" : {
        "folder" : "/tmp",
        "filename_pattern" : ".*\\.csv$",
        "first_line_is_header" : "true",
        "field_separator" : ",",


        "field_id" : "_id"

    },
    "index" : {
        "index" : "my_csv_data_1",
        "type" : "csv_type_1",
        "bulk_size" : 100,
        "bulk_threshold" : 10
    }
}'
搜索http://localhost:9200/my_csv_data_1/_search后编制索引后

得到了

{
error: "IndexMissingException[[my_csv_data_1] missing]",
status: 404
}

任何想法或我错过任何事情?

0 个答案:

没有答案