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

Can PrefixQuery subclass AutomatonQuery?

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.1, 6.0
    • None
    • None
    • New

    Description

      Spinoff/blocker for LUCENE-5879.

      It seems like PrefixQuery should "simply" be an AutomatonQuery rather than specializing its own TermsEnum ... with maybe some performance improvements to ByteRunAutomaton.run to short-circuit once it's in a "sink state", AutomatonTermsEnum could be just as fast as PrefixTermsEnum.

      If we can do this it will make LUCENE-5879 simpler.

      Attachments

        1. LUCENE-6367.patch
          21 kB
          Michael McCandless
        2. LUCENE-6367.patch
          31 kB
          Michael McCandless

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: