Class HighlightQueryBuilder
java.lang.Object
org.springframework.data.elasticsearch.client.erhlc.HighlightQueryBuilder
Deprecated.
since 5.0
Converts the
Highlight
annotation from a method to an Elasticsearch 7 HighlightBuilder
.- Author:
- Peter-Josef Meisch
-
Constructor Summary
ConstructorDescriptionHighlightQueryBuilder
(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder
getHighlightBuilder
(Highlight highlight, Class<?> type) Deprecated.creates an Elasticsearch HighlightBuilder from an annotation.
-
Constructor Details
-
HighlightQueryBuilder
public HighlightQueryBuilder(MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> mappingContext) Deprecated.
-
-
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 nulltype
- the entity type, used to map field names. If null, field names are not mapped.- Returns:
- the builder for the highlight
-