@StableMinor(version="12.4", sinceVersion="8.1") public class HighlightConfig extends Object
Constructor and Description |
---|
HighlightConfig() |
Modifier and Type | Method and Description |
---|---|
HighlightConfig |
addHighlightFields(Collection<String> highlightFieldIds)
Adds the given field identifiers as highlighted fields.
|
HighlightConfig |
addHighlightFields(String... highlightFieldIds)
Adds the given field identifiers as highlighted fields.
|
String |
getEndHighlightTag()
Returns the custom end highlight tag.
|
Integer |
getFragmentSize()
Returns the highlight fragment size.
|
List<String> |
getHighlightFieldIds()
Returns the highlight fields identifiers.
|
Integer |
getNumberOfFragments()
Returns the maximum number of fragments returned by the search.
|
String |
getStartHighlightTag()
Returns the custom start highlight tag.
|
HighlightConfig |
setEndHighlightTag(String endHighlightTag)
Sets the end highlight custom tag.
|
HighlightConfig |
setFragmentSize(Integer fragmentSize)
Sets the highlight fragment size.
|
HighlightConfig |
setNumberOfFragments(Integer numberOfFragments)
Sets the maximum number of fragments returned by the search.
|
HighlightConfig |
setStartHighlightTag(String startHighlightTag)
Sets the start highlight custom tag.
|
public HighlightConfig addHighlightFields(String... highlightFieldIds)
highlightFieldIds
- the field identifiers.public HighlightConfig addHighlightFields(Collection<String> highlightFieldIds)
highlightFieldIds
- the field identifiers.public List<String> getHighlightFieldIds()
public HighlightConfig setEndHighlightTag(String endHighlightTag)
endHighlightTag
- the end highlight custom tag.public HighlightConfig setStartHighlightTag(String startHighlightTag)
startHighlightTag
- the start highlight custom tag.public String getStartHighlightTag()
public String getEndHighlightTag()
public HighlightConfig setFragmentSize(Integer fragmentSize)
fragmentSize
- the highlight fragment size.public Integer getFragmentSize()
public HighlightConfig setNumberOfFragments(Integer numberOfFragments)
numberOfFragments
- the maximum number of fragments returned by the search.public Integer getNumberOfFragments()
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.