You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Solr 9.4中如何通过系统属性配置远程流与Stream Body?

Solr 9.4中通过系统属性配置enableRemoteStreaming和enableStreamBody

在Solr 9.x版本中,enableRemoteStreaming和enableStreamBody这两个配置项已从solrconfig.xml中废弃,必须通过JVM系统属性来设置,具体操作方式如下:

临时生效(启动时指定)

启动Solr时直接在命令行添加JVM参数:

bin/solr start -Dsolr.enableRemoteStreaming=true -Dsolr.enableStreamBody=true

持久化配置(修改启动脚本)

如果需要每次启动都自动生效,可修改Solr的启动配置文件:

  • Linux/macOS系统:编辑bin/solr.in.sh,在文件中添加一行:
    SOLR_OPTS="$SOLR_OPTS -Dsolr.enableRemoteStreaming=true -Dsolr.enableStreamBody=true"
    
  • Windows系统:编辑bin/solr.in.cmd,在文件中添加一行:
    set SOLR_OPTS=%SOLR_OPTS% -Dsolr.enableRemoteStreaming=true -Dsolr.enableStreamBody=true
    

配置完成后,重启Solr即可生效。另外可以把原solrconfig.xml中<requestParsers>标签里的enableRemoteStreaming和enableStreamBody属性删掉,避免日志中再出现忽略提示。

内容的提问来源于stack exchange,提问作者Rick Hodder

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.01 19:22:31