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

Extend contrib Highlighter to properly support PhraseQuery, SpanQuery, ConstantScoreRangeQuery

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.2
    • core/other
    • None
    • New, Patch Available

    Description

      This patch adds a new Scorer class (SpanQueryScorer) to the Highlighter package that scores just like QueryScorer, but scores a 0 for Terms that did not cause the Query hit. This gives 'actual' hit highlighting for the range of SpanQuerys, PhraseQuery, and ConstantScoreRangeQuery. New Query types are easy to add. There is also a new Fragmenter that attempts to fragment without breaking up Spans.

      See http://issues.apache.org/jira/browse/LUCENE-403 for some background.

      There is a dependency on MemoryIndex.

      Attachments

        1. SpanHighlighter-RemovSysOut.patch
          0.5 kB
          Mark Miller
        2. SpanHighlighter-02-10-2008.patch
          118 kB
          Mark Miller
        3. MultiPhraseQueryExtraction.patch
          6 kB
          Benjamin Keil
        4. SpanHighlighter-01-28-2008.patch
          113 kB
          Mark Miller
        5. SpanHighlighter-01-26-2008.patch
          112 kB
          Mark Miller
        6. spanhighlighter_24_January_2008.patch
          75 kB
          Michael Goddard
        7. spanhighlighter12.patch
          76 kB
          Mark Miller
        8. spanhighlighter11.patch
          72 kB
          Mark Miller
        9. spanhighlighter10.patch
          71 kB
          Mark Miller
        10. spanhighlighter9.patch
          76 kB
          Mark Miller
        11. spanhighlighter8.patch
          74 kB
          Mark Miller
        12. spanhighlighter7.patch
          69 kB
          Mark Miller
        13. spanhighlighter6.patch
          71 kB
          Mark Miller
        14. spanhighlighter5.patch
          72 kB
          Mark Miller
        15. spanhighlighter_patch_4.zip
          12 kB
          Mark Miller
        16. spanhighlighter3.patch
          73 kB
          Mark Miller
        17. spanhighlighter2.patch
          68 kB
          Mark Miller
        18. spanhighlighter.patch
          69 kB
          Mark Miller

        Activity

          People

            Unassigned Unassigned
            markrmiller@gmail.com Mark Miller
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: