开发者

BooleanQuery Too Many Clauses in Lucene

开发者 https://www.devze.com 2022-12-22 16:41 出处:网络
For a bit of background to know what i am doing: using hit highlighter开发者_Go百科 in lucene Now to solve this problem i am setting maxclause count to 50000.

For a bit of background to know what i am doing:

using hit highlighter开发者_Go百科 in lucene

Now to solve this problem i am setting maxclause count to 50000.

it works.

can there be any problems by increasing the number of clauses


If you have too many clauses, performance will suffer, especially if you are running disjunctive (OR) queries. In some rare cases, you might run out of memory.

0

精彩评论

暂无评论...
验证码 换一张
取 消