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

Extend contrib Highlighter to properly support PhraseQuery, SpanQuery, ConstantScoreRangeQuery

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.2
    • Component/s: core/other
    • Labels:
      None
    • Lucene Fields:
      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.patch
          69 kB
          Mark Miller
        2. spanhighlighter2.patch
          68 kB
          Mark Miller
        3. spanhighlighter3.patch
          73 kB
          Mark Miller
        4. spanhighlighter_patch_4.zip
          12 kB
          Mark Miller
        5. spanhighlighter5.patch
          72 kB
          Mark Miller
        6. spanhighlighter6.patch
          71 kB
          Mark Miller
        7. spanhighlighter7.patch
          69 kB
          Mark Miller
        8. spanhighlighter8.patch
          74 kB
          Mark Miller
        9. spanhighlighter9.patch
          76 kB
          Mark Miller
        10. spanhighlighter10.patch
          71 kB
          Mark Miller
        11. spanhighlighter11.patch
          72 kB
          Mark Miller
        12. spanhighlighter12.patch
          76 kB
          Mark Miller
        13. spanhighlighter_24_January_2008.patch
          75 kB
          Michael Goddard
        14. SpanHighlighter-01-26-2008.patch
          112 kB
          Mark Miller
        15. SpanHighlighter-01-28-2008.patch
          113 kB
          Mark Miller
        16. MultiPhraseQueryExtraction.patch
          6 kB
          Benjamin Keil
        17. SpanHighlighter-02-10-2008.patch
          118 kB
          Mark Miller
        18. SpanHighlighter-RemovSysOut.patch
          0.5 kB
          Mark Miller

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: