cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Increasing maxClauseCount for Full-text Queries

cody
Node Link

When querying with a long string on a full-text index, the following error is raised:

Failed to invoke procedure db.index.fulltext.queryNodes: Caused by: org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount
is set to 1024

Is there any way to increase this limit through an environment variable or a config file?

4 REPLIES 4

cody
Node Link

Bump—still looking for a way to increase this limit through either an environment variable, config parameter, or custom Lucene implementation. Does anyone have any experience altering this configuration?

Hello @cody

It looks like it can be changed:

Regards,
Cobra

Thanks, Maxime, I recall seeing that Stack Overflow thread but was unsure of how to implement the change (where to add the BooleanQuery method). I'm currently using the Neo4j Python driver and running an instance of Neo4j enterprise in a Docker container. I've searched through both the server and driver documentation and haven't found any solution as of yet.

Oh yeah I see

I didn't find anything, I will try to reach someone from Neo4j to see if someone has an idea

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online