Is there a size or term limit for a Solr query string when using HTTP POST?

十年热恋 提交于 2019-11-30 17:51:37

There is no limit on the Solr side - we regularly use Solr in a similar way with tens of thousands of IDs in the query.

You need to look at the settings for your servlet container (Tomcat, Jetty etc.) and increase the maximum POST size. Look up maxPostSize if you are using Tomcat and maxFormContentSize if you are using Jetty.

As of Solr 6.0 there is a maxBooleanClauses configuration within Solr - defaults to 1024.

I wrote a unit test to confirm and confirmed the limitation (with Solr 5.3).

See more here https://wiki.apache.org/solr/SolrConfigXml#The_Query_Section

FWIW there is an open Solr JIRA to remove it so it may be removed in the future https://issues.apache.org/jira/browse/SOLR-4586

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!