lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] Created: (LUCENE-2687) Remove Priority-Queue size trap in MultiTermQuery.TopTermsBooleanQueryRewrite
Date Mon, 04 Oct 2010 20:02:32 GMT
Remove Priority-Queue size trap in MultiTermQuery.TopTermsBooleanQueryRewrite

                 Key: LUCENE-2687
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Search
    Affects Versions: 3.1, 4.0
            Reporter: Robert Muir
            Priority: Minor
             Fix For: 3.1, 4.0

These APIs are new in 3.x, so we can do this with no backwards-compatibility issue:

Before 3.1, FuzzyQuery had its own internal rewrite method.
We exposed this in 3.x as TopTermsBooleanQueryRewrite, and then as subclasses for Scoring
and Boost-only variants.

The problem I have is that the PQ has a default (large) size of Integer.MAX_VALUE... of course
its later limited by
the value of BooleanQuery's maxClauseCount, but I think this is a trap.

Instead its better to simply remove these defaults and force the user to provide a default
(reasonable) size.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message