Interface MatchHighlighter.FieldValueHighlighter

    • Method Detail

      • isApplicable

        boolean isApplicable​(String field,
                             boolean hasMatches)
        Check if this highlighter can be applied to a given field.
        Parameters:
        field - Field name
        hasMatches - true if the field has a non-empty set of match regions.
      • alwaysFetchedFields

        default Collection<String> alwaysFetchedFields()
        Returns:
        Returns a set of fields that must be fetched for each document, regardless of whether they had matches or not. This is useful to load and return certain fields that should always be included (identifiers, document titles, etc.).