How can I set "maxClauseCount" in my lucene query using Hot rod client in JDG ?

Solution Unverified - Updated -


  • While making a hot rod query using an in statement which has 1157 clauses, below exception is observed :
Uncaught exception!: org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for messageId=70675 returned server error (status=0x85):$TooManyClauses: maxClauseCount is set to 1024
    at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(
    at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(
    at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(
    at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(
    at org.infinispan.client.hotrod.impl.operations.QueryOperation.executeOperation(
    at org.infinispan.client.hotrod.impl.operations.QueryOperation.executeOperation(
    at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(
    at org.infinispan.client.hotrod.impl.query.RemoteQuery.executeQuery(
    at org.infinispan.client.hotrod.impl.query.RemoteQuery.list(


  • Red Hat JBoss Data Grid (JDG)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content