我对Cassandra使用lucene索引。
<dependency>
<groupId>com.stratio.cassandra</groupId>
<artifactId>cassandra-lucene-index-builder</artifactId>
<version>3.9.4</version>
</dependency>我收到以下错误:
com.datastax.driver.core.exceptions.InvalidQueryException: maxClauseCount is set to 1024 由于过滤条件太多。我读到我们可以增加限制,我想知道如何提高限制?我试过使用BooleanQuery,但没有找到。这是增加的方法吗?我可以使用哪个依赖项来实现它呢?
发布于 2017-07-18 15:00:32
我认为在Lucene中,特别是在Boolean queries中,这个限制的存在是为了迫使用户意识到滥用。
User @user1860447在我们的github中打开了一个问题索引,我们在cassandra-lucene- #333布尔查询中added a max_clause field,让你修改这个限制,但你必须确保测试你的系统。
您可以阅读有关this limitation的更多信息
https://stackoverflow.com/questions/44768750
复制相似问题