Class ReactiveSearchCommandsImpl<K>

    • Field Detail

      • keyType

        protected final Class<K> keyType
    • Method Detail

      • ft_list

        public io.smallrye.mutiny.Uni<List<K>> ft_list()
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT._LIST. Summary: Returns a list of all existing indexes. Group: search

        This is a temporary command.

        Specified by:
        ft_list in interface ReactiveSearchCommands<K>
        Returns:
        A uni emitting the list of the keys
      • ftAggregate

        public io.smallrye.mutiny.Uni<AggregationResponse> ftAggregate​(String indexName,
                                                                       String query,
                                                                       AggregateArgs args)
        Description copied from interface: ReactiveSearchCommands
        Execute 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:
        ftAggregate in interface ReactiveSearchCommands<K>
        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 uni emitting the response to the aggregate
      • decodeAggregateResponse

        AggregationResponse decodeAggregateResponse​(io.vertx.mutiny.redis.client.Response response,
                                                    boolean cursor)
      • ftAggregate

        public io.smallrye.mutiny.Uni<AggregationResponse> ftAggregate​(String indexName,
                                                                       String query)
        Description copied from interface: ReactiveSearchCommands
        Execute 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:
        ftAggregate in interface ReactiveSearchCommands<K>
        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 uni emitting the response to the query
      • ftAliasAdd

        public io.smallrye.mutiny.Uni<Void> ftAliasAdd​(String alias,
                                                       String index)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.ALIASADD. Summary: Add an alias to an index Group: search
        Specified by:
        ftAliasAdd in interface ReactiveSearchCommands<K>
        Parameters:
        alias - the alias to be added to an index.
        index - the index
        Returns:
        A uni emitting null when the operation completes
      • ftAliasDel

        public io.smallrye.mutiny.Uni<Void> ftAliasDel​(String alias)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.ALIASDEL. Summary: Remove an alias from an index Group: search
        Specified by:
        ftAliasDel in interface ReactiveSearchCommands<K>
        Parameters:
        alias - the alias to be removed
        Returns:
        A uni emitting null when the operation completes
      • ftAliasUpdate

        public io.smallrye.mutiny.Uni<Void> ftAliasUpdate​(String alias,
                                                          String index)
        Description copied from interface: ReactiveSearchCommands
        Execute 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:
        ftAliasUpdate in interface ReactiveSearchCommands<K>
        Parameters:
        alias - the alias to be added to an index.
        index - the index
        Returns:
        A uni emitting null when the operation completes
      • ftAlter

        public io.smallrye.mutiny.Uni<Void> ftAlter​(String index,
                                                    IndexedField field,
                                                    boolean skipInitialScan)
        Description copied from interface: ReactiveSearchCommands
        Execute 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:
        ftAlter in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index
        field - the indexed field to add
        skipInitialScan - whether to skip the initial scan, if set to true, does not scan and index.
        Returns:
        A uni emitting null when the operation completes
      • ftCreate

        public io.smallrye.mutiny.Uni<Void> ftCreate​(String index,
                                                     CreateArgs args)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.CREATE. Summary: Create an index with the given specification. Group: search
        Specified by:
        ftCreate in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index
        args - the creation arguments.
        Returns:
        A uni emitting null when the operation completes
      • ftCursorDel

        public io.smallrye.mutiny.Uni<Void> ftCursorDel​(String index,
                                                        long cursor)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.CURSOR DEL. Summary: Delete a cursor Group: search
        Specified by:
        ftCursorDel in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index
        cursor - the cursor id
        Returns:
        A uni emitting null when the operation completes
      • ftCursorRead

        public io.smallrye.mutiny.Uni<AggregationResponse> ftCursorRead​(String index,
                                                                        long cursor,
                                                                        int count)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.CURSOR READ. Summary: Read next results from an existing cursor Group: search
        Specified by:
        ftCursorRead in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index
        cursor - the cursor id
        count - the number of results to read
        Returns:
        A uni emitting the aggregate response. This parameter overrides COUNT specified in FT.AGGREGATE.
      • ftDropIndex

        public io.smallrye.mutiny.Uni<Void> ftDropIndex​(String index,
                                                        boolean dd)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.DROPINDEX. Summary: Delete an index Group: search
        Specified by:
        ftDropIndex in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index
        dd - drop operation that, if set, deletes the actual document hashes.
        Returns:
        A uni emitting null when the operation completes
      • ftDictAdd

        public io.smallrye.mutiny.Uni<Void> ftDictAdd​(String dict,
                                                      String... words)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.DICTADD. Summary: Add terms to a dictionary Group: search
        Specified by:
        ftDictAdd in interface ReactiveSearchCommands<K>
        Parameters:
        dict - the dictionary name
        words - the terms to add to the dictionary
        Returns:
        A uni emitting null when the operation completes
      • ftDictDel

        public io.smallrye.mutiny.Uni<Void> ftDictDel​(String dict,
                                                      String... words)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.DICTDEL. Summary: Remove terms from a dictionary Group: search
        Specified by:
        ftDictDel in interface ReactiveSearchCommands<K>
        Parameters:
        dict - the dictionary name
        words - the terms to remove to the dictionary
        Returns:
        A uni emitting null when the operation completes
      • ftDictDump

        public io.smallrye.mutiny.Uni<List<String>> ftDictDump​(String dict)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.DICTDUMP. Summary: Dump all terms in the given dictionary Group: search
        Specified by:
        ftDictDump in interface ReactiveSearchCommands<K>
        Parameters:
        dict - the dictionary name
        Returns:
        A uni emitting the list of words (terms) included in the dictionary
      • decodeSpellcheckResponse

        SpellCheckResponse decodeSpellcheckResponse​(io.vertx.mutiny.redis.client.Response response)
      • decodeSynDumpResponse

        SynDumpResponse decodeSynDumpResponse​(io.vertx.mutiny.redis.client.Response r)
      • ftSynUpdate

        public io.smallrye.mutiny.Uni<Void> ftSynUpdate​(String index,
                                                        String groupId,
                                                        String... words)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.SYNUPDATE. Summary: Update a synonym group Group: search
        Specified by:
        ftSynUpdate in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index name.
        groupId - the synonym group
        words - the synonyms
        Returns:
        A uni emitting null when the operation completes
      • ftSynUpdate

        public io.smallrye.mutiny.Uni<Void> ftSynUpdate​(String index,
                                                        String groupId,
                                                        boolean skipInitialScan,
                                                        String... words)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.SYNUPDATE. Summary: Update a synonym group Group: search
        Specified by:
        ftSynUpdate in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index name.
        groupId - the synonym group
        skipInitialScan - if set to true, does not scan and index, and only documents that are indexed after the update are affected.
        words - the synonyms
        Returns:
        A uni emitting null when the operation completes
      • ftTagVals

        public io.smallrye.mutiny.Uni<Set<String>> ftTagVals​(String index,
                                                             String field)
        Description copied from interface: ReactiveSearchCommands
        Execute the command FT.TAGVALS. Summary: return a distinct set of values indexed in a Tag field Group: search
        Specified by:
        ftTagVals in interface ReactiveSearchCommands<K>
        Parameters:
        index - the index name.
        field - the name of a tag file defined in the schema.
        Returns:
        A uni emitting the set of values indexed in a Tag field