Skip to content

how to send and parse FT.SEARCH command #638

@eaziz4

Description

@eaziz4

With this code

using Result = std::vector<sw::redis::Variant<long long, std::string, std::unordered_map<std::string, std::string>>>;
auto res = conn->command<Result>("FT.SEARCH", "betsIdx", "*", "RETURN", "1", "compressedBet", "LIMIT", "0", "10");

where Result is defined like in #532, I get this error "expect ARRAY or SET reply, but got UNKNOWN reply". How do I send redisearch commands?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions