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>
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>
相关文章推荐
- solr查询条件过多异常
- 多条件查询程序处理与数据库处理
- SqlSERVER分页函数(补充了额外查询条件的处理)
- SQL 复合查询条件(AND,OR,NOT)对NULL值的处理方法
- solr SearchHandler扩展,解决httpclient连接问题以及对连接异常的容错处理
- 查询时要处理好各种异常情况
- 关于存储过程中一个参数表示多个查询条件使用方法的简单处理
- 大小写不敏感的查询条件处理
- SQL 查询语句 IIF()处理条件判断
- sql语句处理单引号,解决查询异常
- SQL 复合查询条件(AND,OR,NOT)对NULL值的处理方法
- SQL SERVER2000教程-第五章 处理数据 第十七节 使用CASE函数格式进行条件查询
- web开发中的多条件查询处理技巧1则
- 动态SQL中的查询条件参数化处理
- java中前台输入查询条件中包含“’”的处理
- PHP多条件查询处理
- web开发中的多条件查询处理技巧1则
- web开发中的多条件查询处理技巧1则
- SQL中,查询条件中的引号处理,单引号,双引号
- 关于SubSonic3.0查询或更新时出现System.NullReferenceException异常的处理