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

Allow WildcardQuery and RegexpQuery to also use auto-prefix terms

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None
    • New

    Description

      In LUCENE-5879, we added auto-prefix terms, where the terms dict finds good prefix terms to index, so that at search time PrefixQuery and TermRangeQuery can visit far fewer terms than the full set.

      WildcardQuery and RegexpQuery will only make use of auto-prefix terms if it's "effectively" a PrefixQuery (e.g. WildcardQuery("foo*")), but we could fix them so they could also use auto-prefix terms for other cases (e.g. foo?b*) though in practice it's less likely to have an impact I think.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: