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

wildcardquery rewrite improvements

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • core/query/scoring
    • None
    • New

    Description

      wildcardquery has logic to rewrite to termquery if there is no wildcard character, but

      • it needs to pass along the boost if it does this
      • if the user asked for a 'constant score' rewriteMethod, it should rewrite to a constant score query for consistency.

      additionally, if the query is really a prefixquery, it would be nice to rewrite to prefix query.
      both will enumerate the same number of terms, but prefixquery has a simpler comparison function.

      Attachments

        1. LUCENE-1951_bwcompatbranch.patch
          0.9 kB
          Robert Muir
        2. LUCENE-1951.patch
          9 kB
          Robert Muir
        3. LUCENE-1951.patch
          6 kB
          Robert Muir

        Activity

          People

            mikemccand Michael McCandless
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: