Class CustomPassageFormatter


public class CustomPassageFormatter extends
Custom passage formatter that allows us to: 1) extract different snippets (instead of a single big string) together with their scores (Snippet) 2) use the Encoder implementations that are already used with the other highlighters
  • Constructor Details

    • CustomPassageFormatter

      public CustomPassageFormatter(String preTag, String postTag, encoder)
  • Method Details

    • format

      public Snippet[] format([] passages, String content)
      Specified by:
      format in class