時間:2024-02-28 13:28作者:下載吧人氣:14
前言
以下是一個mongo查詢的綜合應(yīng)用,即介紹一個生產(chǎn)中實(shí)際應(yīng)用的模糊查詢,當(dāng)然其實(shí)也很簡單,主要用到mongo中的模糊查詢和$or查詢,以及并的關(guān)系,下面是一個mongo中的一條記錄
{
“_id” : “ffe6a068-9043-4334-97d2-75387340e655”,
“file_id” : “ffe6a068-9043-4334-97d2-75387340e655”,
“name” : “中國正大”,
“update_time” : NumberInt(1554975642),
“create_time” : NumberInt(1554975642),
“content” : “中國正大相關(guān)信息”,
“file_url” : “”,
“file_type” : “”,
“user_ids” : [
1.0,
10.0
],
“group_ids” : [
],
“is_common” : NumberInt(0),
“confidence” : -1.0,
“obj_id” : “”,
“source” : “”,
“content_time” : “”,
“author” : “”,
“summary” : “”,
“info_type” : “00”,
“sub_info_type” : “”,
“title” : “”,
“word_num” : NumberInt(8)
}
網(wǎng)友評論