Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4727

Make CommonTermsQuery#setMinShouldMatch useful

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.2, 6.0
    • Component/s: modules/other
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Currently common terms query accepts an integer as minimumNumShouldMatch which is kind of odd since the number of low freq terms is determined during rewrite. We should make this extendable and use a float by default that works similar to the cutoff frequency we use where a range between [0..1) means a fraction of the actual count and a num >= 1.0 an absolute value.

      1. LUCENE-4727.patch
        8 kB
        Simon Willnauer

        Activity

        Hide
        simonw Simon Willnauer added a comment -

        patch

        Show
        simonw Simon Willnauer added a comment - patch
        Hide
        commit-tag-bot Commit Tag Bot added a comment -

        [trunk commit] Simon Willnauer
        http://svn.apache.org/viewvc?view=revision&revision=1439449

        LUCENE-4727: use float as minShouldMatch on CommonTermsQuery

        Show
        commit-tag-bot Commit Tag Bot added a comment - [trunk commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1439449 LUCENE-4727 : use float as minShouldMatch on CommonTermsQuery
        Hide
        commit-tag-bot Commit Tag Bot added a comment -

        [branch_4x commit] Simon Willnauer
        http://svn.apache.org/viewvc?view=revision&revision=1439450

        LUCENE-4727: use float as minShouldMatch on CommonTermsQuery

        Show
        commit-tag-bot Commit Tag Bot added a comment - [branch_4x commit] Simon Willnauer http://svn.apache.org/viewvc?view=revision&revision=1439450 LUCENE-4727 : use float as minShouldMatch on CommonTermsQuery
        Hide
        thetaphi Uwe Schindler added a comment -

        Closed after release.

        Show
        thetaphi Uwe Schindler added a comment - Closed after release.

          People

          • Assignee:
            simonw Simon Willnauer
            Reporter:
            simonw Simon Willnauer
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development