Getstream.io聊天消息搜索语法

时间:2020-05-07 01:08:22

标签: getstream-io

我正在尝试使用getstream.io的聊天产品实施消息搜索。 The docs举例:

const filters = { members: { $in: ['john'] } };

const search = await client.search(
   filters,
   'supercalifragilisticexpialidocious',
   { limit: 2, offset: 0 },
);

实施此操作时,将返回用户supercalifragilisticexpialidociousjohn完全匹配的消息,但是基于我的应用程序中的测试,我不会得到包含字符串的John消息,例如: supercalifragilisticexpialidocious is a fun thing to say

邮件搜索是否仅针对完全匹配进行设置?还是有不同的语法?

1 个答案:

答案 0 :(得分:0)

搜索正常。这个问题没有意义。