mysql - 像很多网站(比如电商)里的筛选功能一般是如何实现的?
阿神
阿神 2017-04-17 16:38:42
0
2
613
阿神
阿神

闭关修行中......

reply all(2)
Peter_Zhu

Implemented by search engines, such as Lucene.

小葫芦

Data structure and data search are done separately
1. Data structure:
Basic product information (name, manufacturer, price and other information, product type)
Product type table (mobile phones, tablets, home appliances, etc.)
Product attribute table ( Screen size, processor, etc.)

Process the correspondence between these information through association, which is more flexible, otherwise no matter how you design it, it will be either redundant or insufficient

2. Data search:
Use solr, sphinx and the like to create indexes (just build several indexes for several tables), and then read the manual to build your own query API

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!