@cash , I remember there was a version of Patapsco where the query length is also truncated and after expanded with PSQ terms also the new query is truncated by 1024 tokens. But when I run the current GitHub version, I get the error : too many boolean clauses org.apache.lucene.queryparser.classic.ParseException . Do you know if we have to manually raise a flag to handle that ?