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

AnalyzingSuggester should use end() offset to decide if last token ended or not

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3, 6.0
    • modules/spellchecker
    • None
    • New

    Description

      For example, today if you index "i love lucy" and "isla de muerta", and then you ask for suggestions for "i" and for "i " (space after the i) you'll get the same results.

      But if we use the ending offset, we can determine (I think?) that there were non-token characters after the last token, so that "i " would only suggest "i love lucy".

      Attachments

        1. LUCENE-4821.patch
          8 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: