
针 是一个使用 PHP 构建的分面搜索系统。所有搜索请求都使用 ajax 执行,因此不会重定向或刷新页面,它会非常快速地返回结果。
为什么选择针?
所有代码都非常简单且嵌套正确。它很容易修改。所有搜索键都返回表单数据库,因此无需在 html 中添加太多搜索选项或复选框,只需将您的产品添加到数据库中,搜索面板就会自行更新。任何类型的网站都可以使用这种分面搜索系统。例如:任何类型的电子商务、酒店预订、汽车陈列室等。
抓取效率和 SEO 性能
这对电子商务网站来说可能是一个巨大的挑战,因为电子商务网站可能有数百甚至数千个页面,这些页面是同一产品/类别的相似版本。由于网站上的每种产品都有多种可能的属性组合(颜色、尺寸、材质等),因此 Googlebot 可能会浪费大量抓取带宽来抓取导航过滤器。
Needle 使用 Ajax 执行搜索并导航到页面。使用 AJAX 进行分面导航的主要好处是,当用户在页面上并应用过滤器或排序顺序时,不会创建新 URL。整个过程使用 JavaScript 在客户端进行,不涉及 Web 服务器。
框架
- 引导程序 4.0.0-beta
- jQuery 3.2.1
- jQuery UI 1.12.1
- Normalize.css 7.0.0
更新日志
2023.01.01 - Bugfix on reset button 2022.12.31 - Bugfix on Price Range slider 2022.11.14 - Upgraded to Bootstrap 5 2022.10.30 - add mysqli_real_escape_string() to avoid mysql injection 2021.08.24 - Add new range slider (touch compatible) 2021.08.14 - Add intermediary table for "Products" and "Colors". From now on a product can have multiple colors. 2021.07.13 - Bugfix on hard-coded image path 2021.03.11 - Bugfix on description search 2021.03.10 - Add a message if no result found 2021.03.10 - Bugfix on pagination links 2021.01.19 - Remove "Load More >>>" button if there is no more items 2019.04.09 - Responsive design 2018.12.27 - Compatible with IE11 & Edge 2018.11.12 - Bug fix on product load. 2018.09.06 - Bug fix on search in `description` field. 2018.06.15 - Add "Clear all filters" button. 2018.02.10 - Display available product quantity on search list 2017.11.13 - Bug fix: Stop previous Ajax request if new request starts. (effective on large database or low bandwidth) 2017.10.29 - Initial Upload
原文链接:https://www.hrdweb.com/47532.html,转载请注明出处~~~
评论0