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

TermAutomatonQuery should rewrite to a simpler query when possible

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.4, 7.0
    • None
    • None
    • New

    Description

      Spinoff from LUCENE-6664.

      I think TermAutomatonQuery would be easier to integrate into query parsers if you could simply use it always and it would rewrite to simpler / faster queries when possible.

      This way, when a query parser is confronted with a phrase query requested by the user, it can just make a TermAutomatonQuery and run that.

      But the non-explicit phrase query case is still tricky...

      Attachments

        1. LUCENE-6824.patch
          12 kB
          Michael McCandless
        2. LUCENE-6824.patch
          13 kB
          Michael McCandless

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: