Needle V2 是一个分面搜索系统,使用 拉拉维尔 标有叶片 模板。所有搜索请求都使用 ajax 执行,因此无需重定向或刷新页面,它会非常快速地返回结果。所有代码都支持任何版本的 Laravel。
为什么选择 Needle V2?
所有代码都非常简单且嵌套正确。修改起来非常容易。所有搜索键都返回表单数据库,因此无需在 html 中添加太多搜索选项或复选框,只需将您的产品添加到数据库,搜索面板就会自行更新。任何类型的网站都可以使用这个分面搜索系统。例如:任何类型的电子商务、酒店预订、汽车陈列室等。
抓取效率和 SEO 性能
这对电子商务网站来说可能是一个巨大的挑战,因为电子商务网站可能有数百甚至数千个页面,这些页面是同一产品/类别的相似版本。由于网站上每个产品有多种可能的属性组合(颜色、尺寸、材料等),Googlebot 可能会浪费大量抓取带宽来爬入和爬出导航过滤器。
针 使用 Ajax 执行搜索并导航到页面。使用 AJAX 进行分面导航的主要好处是,当用户位于页面上并应用筛选器或排序顺序时,不会创建新的 URL。整个过程使用 JavaScript 在客户端进行,不涉及 Web 服务器。
服务器要求
您需要确保您的服务器满足以下要求:
- PHP >= 7.3
- BCMath PHP 扩展
- Ctype PHP 扩展
- Fileinfo PHP 扩展
- JSON PHP 扩展
- Mbstring PHP 扩展
- OpenSSL PHP 扩展
- PDO PHP 扩展
- Mbstring PHP 扩展
- Tokenizer PHP 扩展
- XML PHP 扩展
其他框架
- 引导程序 4.0.0
- jQuery 3.2.1
- jQuery 用户界面 1.12.1
- Normalize.css 7.0.0
更新日志
2025.05.03 - Removed abandoned package "fzaninotto/faker" 2025.05.03 - Upgraded to Laravel 9 2022.11.14 - Upgraded to Bootstrap 5 2022.10.30 - Upgraded to Laravel 9 2022.01.13 - Bugfix on products-colors relation. 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.01.19 - Remove "Load More >>>" button if there is no more items. 2020.11.04 - Upgrade to Laravel 8.0 2020.07.28 - Upgrade to Laravel 7.22.2 2020.04.30 - Bugfix on "ajax product loading" while refreshing browser. 2019.04.09 - Responsive Design 2018.12.27 - Compatible with IE11 & Edge 2018.12.27 - Move product listing view code to New Blade File from Controller (Easier to modify product listing design than before) 2018.12.27 - Improve ajax pagination 2018.06.15 - Add "Clear all filters" button 2018.06.15 - Replace custom pagination with laravel-bootstrap default pagination (more efficient, less bug) 2018.06.15 - Improve code quality. Reduce search time and page loading time. 2018.03.24 - Category, Brand, Color, Type and Offers can be search by the "Search Box" 2018.03.07 - Ensure compatibility with Laravel 5.6 2018.02.10 - Display available product quantity on search list 2018.01.22 - Upgrade search engine 2017.12.06 - Bug fix: '500 server error' on `offers` selection 2017.11.09 - Bug fix: Stop previous Ajax request if new request starts. (effective on large database or low bandwidth) 2017.11.01 - Bug fix on "Load more >>>" of "Type" filter 2017.11.01 - Add meta tags to improve SEO and control Spider Crawler 2017.10.23 - Collapsible search option 2017.10.23 - Add "Load more >>>" in search option 2017.09.17 - Initial Upload