BULKAPI:“动作/元数据行[51]格式错误,预期会出现START_OBJECT或END_OBJECT,但找到了[VALUE_STRING]”},“状态”:400}

时间:2019-12-21 13:38:38

标签: ruby elasticsearch kibana elasticsearch-5

我有批量数组,当我使用批量插入索引该批量数组时,显示错误:

expected START_OBJECT or END_OBJECT but found [VALUE_STRING]"}],"type":"illegal_argument_exception","reason":"Malformed action/metadata line [51], expected START_OBJECT or END_OBJECT but found [VALUE_STRING]"},"status":400}

大量数组包括:

  {:_index=>"business_detail",
   :_type=>"_doc",
   :data=>
    {"domain"=>"darrenbideauxrv.com",
     "status"=>"active",
     "franchises"=>
      "{\"listing_count\":80,\"makes\":{\"Heartland\":26.25,\"Travel Lite\":18.75,\"Forest River\":16.25,\"Eclipse Recreational Vehicles\":16.25,\"Coachmen\":15.0,\"Starcraft\":1.25,\"Venture Rv\":1.25,\"Keystone\":1.25,\"Grand Design\":1.25,\"Dutchmen\":1.25,\"Jayco\":1.25}}",
     "created_at"=>1576933347000,
     "updated_at"=>1576933347000,
     "updated_by_user_name"=>"Glen",
     "details"=>
      {"name"=>"Darren",
       "street"=>"1448 West 2100 S.",
       "city"=>"Ogden,",
       "state"=>"UT",
       "zip"=>"84401",
       "latitude"=>41.244261,
       "longitude"=>-112.007924,
       "country"=>"US",
       "continent"=>nil},
     "contact"=>{"phones"=>"", "emails"=>"", "cards"=>""},
     "bross"=>{"id"=>""},
     "c_id"=>{"id"=>"6396"}}}}```

0 个答案:

没有答案