[
https://issues.apache.org/jira/browse/LUCENE-8479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16602369#comment-16602369
]
Jim Ferenczi commented on LUCENE-8479:
--------------------------------------
Here is a patch that applies BooleanQuery#MAX_CLAUSE_COUNT limit to the SpanOr
queries that analyzeGraphPhrase creates.
> QueryBuilder#analyzeGraphPhrase should respect max boolean clause
> -----------------------------------------------------------------
>
> Key: LUCENE-8479
> URL: https://issues.apache.org/jira/browse/LUCENE-8479
> Project: Lucene - Core
> Issue Type: Test
> Reporter: Jim Ferenczi
> Priority: Major
> Attachments: LUCENE-8479.patch
>
>
> Currently there is no limit in the number of span queries that can be mixed
> by QueryBuilder#analyzeGraphPhrase even if the input graph contains thousands
> of paths. We should apply the same limit than analyzeGraphBoolean which
> throws TooManyClauses exception when the number of expanded paths is greater
> than BooleanQuery#MAX_CLAUSE_COUNT.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]