PHP RediSearch 是一个PHP客户 。 已实现的API适用于RediSearch 2.0 安装 composer require macfja/redisearch 用法 创建一个新索引 $ client = new \ Predis \ Client ( /* ... */ ); $ builder = new \ MacFJA \ RediSearch \ Index \ Builder ( $ client ); // Field can be create in advance $ address = new \ MacFJA \ RediSearch \ Index