填充数据后的mongoDB文本搜索

我想做一个搜索文本查询来返回匹配的聊天室,例如老师的名字或老师的姓氏,这将是一个嵌入的文档并将被填充

import pygame
pygame.init()

size = 600,600

surface = pygame.display.set_mode(size,pygame.RESIZABLE)
surface.fill((255,255,255))

while True:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            exit()
    pygame.display.update()

这是我到目前为止提出的查询,但我仍然被卡住

var chatRoomSchema = mongoose.Schema({
  student: { type: ObjectId,ref: "students" },teacher: { type: ObjectId,ref: "teachers" },lastMessage: {
    type: String,required : true,default: " ",},});
a714618777 回答:填充数据后的mongoDB文本搜索

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/498.html

大家都在问