Lucene - Core
  1. Lucene - Core
  2. LUCENE-5206

FuzzyQuery: matching terms must be longer than maxEdits

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5, Trunk
    • Component/s: core/other
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      FuzzyQuery's maxEdit value must be larger than the length of both terms for there to be a match. Based on a response from the java-user list, it looks like I wasn't the only one surprised by this. Let's document this design choice more clearly in the documentation or modify the behavior.

      Apologies if I missed the documentation of this.

        Activity

        Tim Allison created issue -
        Tim Allison made changes -
        Field Original Value New Value
        Attachment FuzzyTermOnShortTermsTest.java [ 12602852 ]
        Michael McCandless made changes -
        Assignee Michael McCandless [ mikemccand ]
        Michael McCandless made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0 [ 12321663 ]
        Fix Version/s 4.5 [ 12324742 ]
        Adrien Grand made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Tim Allison
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development