【问题标题】:Full import URL DataImportHanlder完整导入 URL DataImportHanlder
【发布时间】:2012-09-22 11:14:39
【问题描述】:

我已经配置了我的 solr 数据导入处理程序,现在想要完全导入。在 Solr Wiki 页面上,我发现检查配置的一种方法是:

用浏览器点击 _http://local_host:8983/solr/db/dataimport 来验证配置。

这是正确的吗?参数“db”在以前的 URL 中是什么?我认为这是我之前在某处输入的参数之一,但不清楚是哪个。它没有写在页面上。

谢谢!

【问题讨论】:

    标签: solr full-text-search


    【解决方案1】:

    此命令用于通过 URL 完全导入。

    curl -X POST \
      http://local_host:8983/solr/db/dataimport \
      -H 'Accept: application/json, text/javascript, */*; q=0.01' \
      -H 'Accept-Encoding: gzip, deflate, br' \
      -H 'Accept-Language: pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7' \
      -H 'Cache-Control: no-cache' \
      -H 'Connection: keep-alive' \
      -H 'Content-Type: application/x-www-form-urlencoded' \
      -H 'Origin: http://localhost:8983' \
      -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36' \
      -H 'X-Requested-With: XMLHttpRequest' \
      -d 'command=full-import&clean=true&commit=true&wt=json&indent=true&verbose=false&optimize=false&debug=false'
    

    【讨论】:

      【解决方案2】:
      猜你喜欢
      • 1970-01-01
      • 2021-12-21
      • 1970-01-01
      • 2018-06-07
      • 2021-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-16
      相关资源
      最近更新 更多