public static class SearchContext.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SearchContext |
build() |
SearchContext.Builder |
copy(SearchContext model) |
SearchContext.Builder |
highlights(Map<String,List<String>> highlights)
Describes what in each field matched the search criteria by showing highlighted values,
but only for free text searches or for structured queries that use a MATCHING clause.
|
public SearchContext.Builder highlights(Map<String,List<String>> highlights)
Describes what in each field matched the search criteria by showing highlighted values, but only for free text searches or for structured queries that use a MATCHING clause. The list of strings represents fragments of values that matched the query conditions. Highlighted values are wrapped with <h1>..</h1> tags. All values are HTML-encoded (except <h1> tags).
highlights
- the value to setpublic SearchContext build()
public SearchContext.Builder copy(SearchContext model)
Copyright © 2016–2024. All rights reserved.