Class HighlightArgs

    • Constructor Detail

      • HighlightArgs

        public HighlightArgs()
    • Method Detail

      • fields

        public HighlightArgs fields​(String... fields)
        Each passed field is highlighted. If no FIELDS directive is passed, then all fields returned are highlighted.
        Parameters:
        fields - the fields
        Returns:
        the current HighlightArgs
      • tags

        public HighlightArgs tags​(String open,
                                  String close)
        Configure the tags wrapping the highlighted words. open is prepended to each term match, close is appended to it. If no TAGS are specified, a built-in tag value is appended and prepended.
        Parameters:
        open - the open tag
        close - the close tag
        Returns:
        the current HighlightArgs