Class HighlightArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.search.HighlightArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class HighlightArgs extends Object implements RedisCommandExtraArguments
Allows customizing the highlighting.
-
-
Constructor Summary
Constructors Constructor Description HighlightArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HighlightArgsfields(String... fields)Each passed field is highlighted.HighlightArgstags(String open, String close)Configure the tags wrapping the highlighted words.List<String>toArgs()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
-
-
-
Method Detail
-
fields
public HighlightArgs fields(String... fields)
Each passed field is highlighted. If noFIELDSdirective is passed, then all fields returned are highlighted.- Parameters:
fields- the fields- Returns:
- the current
HighlightArgs
-
tags
public HighlightArgs tags(String open, String close)
Configure the tags wrapping the highlighted words.openis prepended to each term match,closeis appended to it. If noTAGSare specified, a built-in tag value is appended and prepended.- Parameters:
open- the open tagclose- the close tag- Returns:
- the current
HighlightArgs
-
toArgs
public List<String> toArgs()
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments, encoded as a list of String.
-
-