Class HighlightArgs
java.lang.Object
io.quarkus.redis.datasource.search.HighlightArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
Allows customizing the highlighting.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEach passed field is highlighted.Configure the tags wrapping the highlighted words.toArgs()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
HighlightArgs
public HighlightArgs()
-
-
Method Details
-
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
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
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-