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

Match spotter for all query types

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.9
    • None
    • core/search
    • None
    • New, Patch Available

    Description

      Related to LUCENE-1929 and the current inability to highlight NumericRangeQuery, spatial, cached term filters and other exotica.

      This patch provides the ability to wrap any Query objects and record match info as flags encoded in the overall document score.
      Using this approach it would be possible to understand (and therefore highlight) which fields matched clauses in a query.

      The match encoding approach loses some precision in scores as noted here: http://tinyurl.com/ykt8nx7

      Avoiding these precision issues would require a change to Lucene core to record docId, score AND a matchFlag byte in ScoreDoc objects and collector APIs.
      This may be something we should consider.

      Attachments

        1. matchflagger.patch
          15 kB
          Mark Harwood

        Activity

          People

            Unassigned Unassigned
            mharwood Mark Harwood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: