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

Add AnalyzingInfixSuggester

Details

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

    Description

      Our current suggester impls do prefix matching of the incoming text
      against all compiled suggestions, but in some cases it's useful to
      allow infix matching. E.g, Netflix does infix suggestions in their
      search box.

      I did a straightforward impl, just using a normal Lucene index, and
      using PostingsHighlighter to highlight matching tokens in the
      suggestions.

      I think this likely only works well when your suggestions have a
      strong prior ranking (weight input to build), eg Netflix knows
      the popularity of movies.

      Attachments

        1. infixSuggest.png
          166 kB
          Michael McCandless
        2. LUCENE-4845.patch
          50 kB
          Michael McCandless
        3. LUCENE-4845.patch
          46 kB
          Michael McCandless
        4. LUCENE-4845.patch
          26 kB
          Michael McCandless
        5. LUCENE-4845.patch
          12 kB
          Robert Muir
        6. LUCENE-4845.patch
          25 kB
          Michael McCandless
        7. LUCENE-4845.patch
          17 kB
          Michael McCandless

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: