Lucene - Core
  1. Lucene - Core
  2. LUCENE-4727

Make CommonTermsQuery#setMinShouldMatch useful

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.2, Trunk
    • 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
        Simon Willnauer added a comment -

        patch

        Show
        Simon Willnauer added a comment - patch
        Hide
        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 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 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 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
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development