Lucene - Core
  1. Lucene - Core
  2. LUCENE-3494

Remove per-document multiply in FilteredQuery

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Spinoff of LUCENE-1536.

      In LUCENE-1536, Uwe suggested using FilteredQuery under-the-hood to implement filtered search.

      But this query is inefficient, it does a per-document multiplication (wrapped.score() * boost()).

      Instead, it should just pass the boost down in its weight, like BooleanQuery does to avoid this per-document multiply.

        Activity

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Uwe Schindler added a comment -

        Bulk close after release of 3.5

        Show
        Uwe Schindler added a comment - Bulk close after release of 3.5
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Robert Muir [ rcmuir ]
        Resolution Fixed [ 1 ]
        rmuir committed 1179677 (2 files)
        Reviews: none

        LUCENE-3494: Optimize FilteredQuery to remove a multiply in score()

        Hide
        Uwe Schindler added a comment -

        +1, commit this so i can move forward with 1536!

        Thanks for help!!!

        Show
        Uwe Schindler added a comment - +1, commit this so i can move forward with 1536! Thanks for help!!!
        Robert Muir made changes -
        Field Original Value New Value
        Attachment LUCENE-3494.patch [ 12498003 ]
        Robert Muir created issue -

          People

          • Assignee:
            Robert Muir
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development