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

NGramTokenFilter optimization in query phase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • modules/analysis
    • None
    • New, Patch Available

    Description

      I found that NGramTokenFilter-ed token stream could be optimized in query.

      A standard 1,2 NGramTokenFilter will generate a token stream from "abcde" as follows:
      a ab b bc c cd d de e

      When we index "abcde", we'll use all of the tokens.

      But when we query, we only need:
      ab cd de

      Attachments

        1. NGramTokenFilter.patch
          3 kB
          Hiroaki Kawai

        Activity

          People

            otis Otis Gospodnetic
            kawai Hiroaki Kawai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: