justforeg

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

  •  
  •   justforeg · Dec 25, 2015 · 6290 views
    This topic created in 3813 days ago, the information mentioned may be changed or developed.

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


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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3071 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:00 · PVG 23:00 · LAX 08:00 · JFK 11:00
    ♥ Do have faith in what you're doing.