Lucene - Core
  1. Lucene - Core
  2. LUCENE-6429

Remove the TermQuery(Term term, int docFreq) constructor

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Spin-off of LUCENE-6425: this is error-prone as it can lead to inconsistent document and total term frequencies.

        Activity

        Hide
        Adrien Grand added a comment -

        Here is a patch. FuzzyLikeThisQuery was the only consumer of this API and has been refactored to build the TermContext manually.

        Show
        Adrien Grand added a comment - Here is a patch. FuzzyLikeThisQuery was the only consumer of this API and has been refactored to build the TermContext manually.
        Hide
        Robert Muir added a comment -

        +1, thanks for getting these hacks out of termquery and confined to fuzzylikethis.

        Show
        Robert Muir added a comment - +1, thanks for getting these hacks out of termquery and confined to fuzzylikethis.
        Hide
        ASF subversion and git services added a comment -

        Commit 1674084 from Adrien Grand in branch 'dev/trunk'
        [ https://svn.apache.org/r1674084 ]

        LUCENE-6429: Removed the TermQuery(Term,int) constructor.

        Show
        ASF subversion and git services added a comment - Commit 1674084 from Adrien Grand in branch 'dev/trunk' [ https://svn.apache.org/r1674084 ] LUCENE-6429 : Removed the TermQuery(Term,int) constructor.
        Hide
        ASF subversion and git services added a comment -

        Commit 1674085 from Adrien Grand in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1674085 ]

        LUCENE-6429: Removed the TermQuery(Term,int) constructor.

        Show
        ASF subversion and git services added a comment - Commit 1674085 from Adrien Grand in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1674085 ] LUCENE-6429 : Removed the TermQuery(Term,int) constructor.
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            Adrien Grand
            Reporter:
            Adrien Grand
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development