Home > Backend Development > PHP Tutorial > MongoDB怎么做这种MVA搜索,如何设计结构?

MongoDB怎么做这种MVA搜索,如何设计结构?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:48:13
Original
1013 people have browsed it

MongoDB怎么做这种MVA搜索,如何设计结构?
中间的关系是and而非or

有一个想法是酱紫

{
    _id:mongoid,
    title:title,
    another_title:[title1,title2]
    tags:[
        {category: [cate1,cate2,cate3]},
        {year:[2013]},
    ]
}
Copy after login
Copy after login

回复内容:

MongoDB怎么做这种MVA搜索,如何设计结构?
中间的关系是and而非or

有一个想法是酱紫

{
    _id:mongoid,
    title:title,
    another_title:[title1,title2]
    tags:[
        {category: [cate1,cate2,cate3]},
        {year:[2013]},
    ]
}
Copy after login
Copy after login
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
mongodb start
From 1970-01-01 08:00:00
0
0
0
linux - ubuntu14 error installing mongodb
From 1970-01-01 08:00:00
0
0
0
Use of symfony2 mongodb
From 1970-01-01 08:00:00
0
0
0
mongodb _id rename
From 1970-01-01 08:00:00
0
0
0
Parameter understanding of mongodb
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template