org.apache.solr.common.SolrException 流体被禁用流体、apache、org、solr

由网友(西凉)分享简介:我已经设置了 apache solr 7.1 并使用邮递员工具来查询它.但是当我尝试使用邮递员删除索引数据时,出现以下错误.I have setup apache solr 7.1 and using postman tool to query it. But when I am trying to delete i...

我已经设置了 apache solr 7.1 并使用邮递员工具来查询它.但是当我尝试使用邮递员删除索引数据时,出现以下错误.

I have setup apache solr 7.1 and using postman tool to query it. But when I am trying to delete indexed data using postman I get following error.

请求:

GET http://localhost:8983/solr/solr-sample3/update?stream.body={
    "delete": {
        "query": "*:*"
    },
    "commit": { }
}

主体:

{
    "error": {
        "metadata": [
            "error-class",
            "org.apache.solr.common.SolrException",
            "root-error-class",
            "org.apache.solr.common.SolrException"
        ],
        "msg": "Stream Body is disabled. See http://lucene.apache.org/solr/guide/requestdispatcher-in-solrconfig.html for help",
        "code": 400
    }
}

它在以前的 solr 版本 solr 6.6 中工作.我浏览了 lucene 文档,但我无法弄清楚.

It was working in previous solr version solr 6.6. I went through the lucene documentation but I am not able to figure it out.

推荐答案

我查看了文档,它说我需要启用流主体,因为它已在 solr 7.1 中被禁用.

I went though the documentation, it says i need to enable stream body as it has been disabled in solr 7.1 .

启用使用:

curl http://localhost:8983/solr/solr-sample3/config -H 'Content-type:application/json' -d'{
    "set-property" : {"requestDispatcher.requestParsers.enableRemoteStreaming":true},
    "set-property" : {"requestDispatcher.requestParsers.enableStreamBody":true}
}'
阅读全文

相关推荐

最新文章