Lucene - Core
  1. Lucene - Core
  2. LUCENE-3287

Allow ability to set maxDocCharsToAnalyze in WeightedSpanTermExtractor

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jahangir Anwari
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development