Class HighlightQueryBuilder

java.lang.Object
org.springframework.data.elasticsearch.client.erhlc.HighlightQueryBuilder

@Deprecated public class HighlightQueryBuilder extends Object
Deprecated.
since 5.0
Converts the Highlight annotation from a method to an Elasticsearch 7 HighlightBuilder.
Author:
Peter-Josef Meisch
  • Constructor Details

  • Method Details

    • getHighlightBuilder

      public org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder getHighlightBuilder(Highlight highlight, @Nullable Class<?> type)
      Deprecated.
      creates an Elasticsearch HighlightBuilder from an annotation.
      Parameters:
      highlight - , must not be null
      type - the entity type, used to map field names. If null, field names are not mapped.
      Returns:
      the builder for the highlight