V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
justforeg
V2EX  ›  Elasticsearch

求助:特殊名称的 type 如何删除

  •  
  •   justforeg · 2015-12-25 17:43:51 +08:00 · 3376 次点击
    这是一个创建于 3035 天前的主题,其中的信息可能已经有所发展或是发生改变。

    求助。
    我的一个 index 因为脚本写错了导致存入了一个异常的 type 名, type 名字里面有斜杠,比如 /home/dir 这种形式。
    通常的删除方式是
    DELETE http://host:9200/index/type
    但是我的 type 是 /home/dir ,如果按照上面的写法就变成了
    DELETE http://host:9200/index//home/dir
    是无效的请求。
    求帮忙如果删掉这个异常的 type ?


    已解决,把特殊符号做一次 url_encode

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1280 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:56 · PVG 01:56 · LAX 10:56 · JFK 13:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.