您的位置:首页 > 其它

solr 查询条件过多异常处理

2017-04-18 15:52 591 查看
Caused by: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://192.168.2.34:8985/solr/identity_account: non ok status: 413, message:FULL head

WARN  - 2017-04-18 15:38:47.973; org.eclipse.jetty.http.HttpParser; HttpParser Full for /172.17.0.3:8983 <--> /192.168.5.179:33554

1.发送 solr请求改为post

return this.solrTemplate.queryForPage(createQuery(criteria, pageRequest), SAccount.class);

改为:

return this.solrTemplate.queryForPage(createQuery(criteria, pageRequest), SAccount.class, RequestMethod.POST);

2.修改maxBooleanClauses属性,该属性默认值是1024

文件位置在docker_solr/container_files/solr_app/solr-5.0.0/server/solr/configsets

该文件夹下面的每个core 的 solrconfig.xm文件都需要修改

<maxBooleanClauses>1048576</maxBooleanClauses>


                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: