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

Allow ability to set maxDocCharsToAnalyze in WeightedSpanTermExtractor

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 3.3
    • None
    • modules/highlighter
    • None
    • New

    Description

      Spinoff from this thread:

      http://www.gossamer-threads.com/lists/lucene/java-user/129668

      In WeightedSpanTermExtractor the default maxDocCharsToAnalyze value is 0. This inhibits us from getting the weighted span terms in any custom code(e.g attached CustomHighlighter.java) that uses WeightedSpanTermExtractor. Currently the setMaxDocCharsToAnalyze() method is protected, which prevents us from setting maxDocCharsToAnalyze to a value greater than 0. Changing the method to public would give us the ability to set the maxDocCharsToAnalyze.

      Attachments

        1. WeightedSpanTermExtractor.patch
          0.7 kB
          Jahangir Anwari
        2. CustomHighlighter.java
          3 kB
          Jahangir Anwari

        Activity

          People

            Unassigned Unassigned
            janwari Jahangir Anwari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: