Class ReactiveTransactionalSearchCommandsImpl<K>
java.lang.Object
io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
io.quarkus.redis.runtime.datasource.ReactiveTransactionalSearchCommandsImpl<K>
- All Implemented Interfaces:
ReactiveTransactionalRedisCommands,ReactiveTransactionalSearchCommands
public class ReactiveTransactionalSearchCommandsImpl<K>
extends AbstractTransactionalCommands
implements ReactiveTransactionalSearchCommands
-
Field Summary
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx -
Constructor Summary
ConstructorsConstructorDescriptionReactiveTransactionalSearchCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveSearchCommandsImpl<K> reactive, TransactionHolder tx) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>ft_list()Execute the command FT._LIST.io.smallrye.mutiny.Uni<Void>ftAggregate(String indexName, String query) Execute the command FT.AGGREGATE.io.smallrye.mutiny.Uni<Void>ftAggregate(String indexName, String query, AggregateArgs args) Execute the command FT.AGGREGATE.io.smallrye.mutiny.Uni<Void>ftAliasAdd(String alias, String index) Execute the command FT.ALIASADD.io.smallrye.mutiny.Uni<Void>ftAliasDel(String alias) Execute the command FT.ALIASDEL.io.smallrye.mutiny.Uni<Void>ftAliasUpdate(String alias, String index) Execute the command FT.ALIASUPDATE.io.smallrye.mutiny.Uni<Void>ftAlter(String index, IndexedField field) Execute the command FT.ALTER.io.smallrye.mutiny.Uni<Void>ftAlter(String index, IndexedField field, boolean skipInitialScan) Execute the command FT.ALTER.io.smallrye.mutiny.Uni<Void>ftCreate(String index, CreateArgs args) Execute the command FT.CREATE.io.smallrye.mutiny.Uni<Void>ftCursorDel(String index, long cursor) Execute the command FT.CURSOR DEL.io.smallrye.mutiny.Uni<Void>ftCursorRead(String index, long cursor) Execute the command FT.CURSOR READ.io.smallrye.mutiny.Uni<Void>ftCursorRead(String index, long cursor, int count) Execute the command FT.CURSOR READ.io.smallrye.mutiny.Uni<Void>Execute the command FT.DICTADD.io.smallrye.mutiny.Uni<Void>Execute the command FT.DICTDEL.io.smallrye.mutiny.Uni<Void>ftDictDump(String dict) Execute the command FT.DICTDUMP.io.smallrye.mutiny.Uni<Void>ftDropIndex(String index) Execute the command FT.DROPINDEX.io.smallrye.mutiny.Uni<Void>ftDropIndex(String index, boolean dd) Execute the command FT.DROPINDEX.io.smallrye.mutiny.Uni<Void>Execute the command FT.SEARCH.io.smallrye.mutiny.Uni<Void>Execute the command FT.SEARCH.io.smallrye.mutiny.Uni<Void>ftSpellCheck(String index, String query) Execute the command FT.SPELLCHECK.io.smallrye.mutiny.Uni<Void>ftSpellCheck(String index, String query, SpellCheckArgs args) Execute the command FT.SPELLCHECK.io.smallrye.mutiny.Uni<Void>Execute the command FT.SYNDUMP.io.smallrye.mutiny.Uni<Void>ftSynUpdate(String index, String groupId, boolean skipInitialScan, String... words) Execute the command FT.SYNUPDATE.io.smallrye.mutiny.Uni<Void>ftSynUpdate(String index, String groupId, String... words) Execute the command FT.SYNUPDATE.io.smallrye.mutiny.Uni<Void>Execute the command FT.TAGVALS.Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
Constructor Details
-
ReactiveTransactionalSearchCommandsImpl
public ReactiveTransactionalSearchCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveSearchCommandsImpl<K> reactive, TransactionHolder tx)
-
-
Method Details
-
ft_list
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT._LIST. Summary: Returns a list of all existing indexes. Group: searchThis is a temporary command.
- Specified by:
ft_listin interfaceReactiveTransactionalSearchCommands- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftAggregate
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.AGGREGATE. Summary: Run a search query on an index, and perform aggregate transformations on the results, extracting statistics from them Group: search- Specified by:
ftAggregatein interfaceReactiveTransactionalSearchCommands- Parameters:
indexName- the index against which the query is executed.query- the filtering query that retrieves the documents. It follows the exact same syntax as the search query, including filters, unions, not, optional, and so on.args- the extra parameters- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftAggregate
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.AGGREGATE. Summary: Run a search query on an index, and perform aggregate transformations on the results, extracting statistics from them Group: search- Specified by:
ftAggregatein interfaceReactiveTransactionalSearchCommands- Parameters:
indexName- the index against which the query is executed.query- the filtering query that retrieves the documents. It follows the exact same syntax as the search query, including filters, unions, not, optional, and so on.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftAliasAdd
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.ALIASADD. Summary: Add an alias to an index Group: search- Specified by:
ftAliasAddin interfaceReactiveTransactionalSearchCommands- Parameters:
alias- the alias to be added to an index.index- the index- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftAliasDel
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.ALIASDEL. Summary: Remove an alias from an index Group: search- Specified by:
ftAliasDelin interfaceReactiveTransactionalSearchCommands- Parameters:
alias- the alias to be removed- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftAliasUpdate
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.ALIASUPDATE. Summary: Add an alias to an index. If the alias is already associated with another index, FT.ALIASUPDATE removes the alias association with the previous index. Group: search- Specified by:
ftAliasUpdatein interfaceReactiveTransactionalSearchCommands- Parameters:
alias- the alias to be added to an index.index- the index- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftAlter
public io.smallrye.mutiny.Uni<Void> ftAlter(String index, IndexedField field, boolean skipInitialScan) Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.ALTER. Summary: Add a new attribute to the index. Adding an attribute to the index causes any future document updates to use the new attribute when indexing and reindexing existing documents. Group: search- Specified by:
ftAlterin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the indexfield- the indexed field to addskipInitialScan- whether to skip the initial scan, if set totrue, does not scan and index.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftAlter
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.ALTER. Summary: Add a new attribute to the index. Adding an attribute to the index causes any future document updates to use the new attribute when indexing and reindexing existing documents. Group: search- Specified by:
ftAlterin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the indexfield- the indexed field to add- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftCreate
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.CREATE. Summary: Create an index with the given specification. Group: search- Specified by:
ftCreatein interfaceReactiveTransactionalSearchCommands- Parameters:
index- the indexargs- the creation arguments.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftCursorDel
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.CURSOR DEL. Summary: Delete a cursor Group: search- Specified by:
ftCursorDelin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the indexcursor- the cursor id- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftCursorRead
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.CURSOR READ. Summary: Read next results from an existing cursor Group: search- Specified by:
ftCursorReadin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the indexcursor- the cursor id- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftCursorRead
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.CURSOR READ. Summary: Read next results from an existing cursor Group: search- Specified by:
ftCursorReadin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the indexcursor- the cursor idcount- the number of results to read- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftDropIndex
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.DROPINDEX. Summary: Delete an index Group: search- Specified by:
ftDropIndexin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftDropIndex
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.DROPINDEX. Summary: Delete an index Group: search- Specified by:
ftDropIndexin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the indexdd- drop operation that, if set, deletes the actual document hashes.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftDictAdd
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.DICTADD. Summary: Add terms to a dictionary Group: search- Specified by:
ftDictAddin interfaceReactiveTransactionalSearchCommands- Parameters:
dict- the dictionary namewords- the terms to add to the dictionary- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftDictDel
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.DICTDEL. Summary: Remove terms from a dictionary Group: search- Specified by:
ftDictDelin interfaceReactiveTransactionalSearchCommands- Parameters:
dict- the dictionary namewords- the terms to remove to the dictionary- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftDictDump
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.DICTDUMP. Summary: Dump all terms in the given dictionary Group: search- Specified by:
ftDictDumpin interfaceReactiveTransactionalSearchCommands- Parameters:
dict- the dictionary name- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSearch
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.SEARCH. Summary: Search the index with a textual query, returning either documents or just ids Group: search- Specified by:
ftSearchin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name. You must first create the index usingFT.CREATE.query- the text query to search.args- the extra parameters- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSearch
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.SEARCH. Summary: Search the index with a textual query, returning either documents or just ids Group: search- Specified by:
ftSearchin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name. You must first create the index usingFT.CREATE.query- the text query to search.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSpellCheck
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.SPELLCHECK. Summary: Perform spelling correction on a query, returning suggestions for misspelled terms Group: search- Specified by:
ftSpellCheckin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name. You must first create the index usingFT.CREATE.query- the text query to search.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSpellCheck
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.SPELLCHECK. Summary: Perform spelling correction on a query, returning suggestions for misspelled terms Group: search- Specified by:
ftSpellCheckin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name. You must first create the index usingFT.CREATE.query- the text query to search.args- the extra parameters- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSynDump
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.SYNDUMP. Summary: Dump the contents of a synonym group Group: search- Specified by:
ftSynDumpin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSynUpdate
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.SYNUPDATE. Summary: Update a synonym group Group: search- Specified by:
ftSynUpdatein interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name.groupId- the synonym groupwords- the synonyms- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftSynUpdate
public io.smallrye.mutiny.Uni<Void> ftSynUpdate(String index, String groupId, boolean skipInitialScan, String... words) Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.SYNUPDATE. Summary: Update a synonym group Group: search- Specified by:
ftSynUpdatein interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name.groupId- the synonym groupskipInitialScan- if set totrue, does not scan and index, and only documents that are indexed after the update are affected.words- the synonyms- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
ftTagVals
Description copied from interface:ReactiveTransactionalSearchCommandsExecute the command FT.TAGVALS. Summary: return a distinct set of values indexed in a Tag field Group: search- Specified by:
ftTagValsin interfaceReactiveTransactionalSearchCommands- Parameters:
index- the index name.field- the name of a tag file defined in the schema.- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-