Search code examples
solrlucenesolrj

Solrj Query limit


My application fired Solr query which is of very long length, All i wanted to know is there is a limit for the query which SolrJ allows or its unlimited.?


Solution

  • In Lucene, this is typically restricted to 1024 clauses of BooleanQuery. You can increase this by calling BooleanQuery.setMaxClauseCount(...).