Lucene - increase maximum clause count for text query with boolean terms


I need to perform a Lucene-backed full-text search query with a number of boolean operators greater than 1024.
I have seen this question previously asked here.

The accepted solution in that thread at StackOverflow mentioned the use of the following:


How can I call this from Neo4j/Cypher or Neo4j configuration file to increase the maximum clause count of Lucene?

Thank you!