pxslip / laravel-scout-solr
Apache Solr后端驱动的Laravel Scout搜索工具
v2.3.0
2024-06-07 18:31 UTC
Requires
- php: ^7.1
- illuminate/support: >=5.5
- laravel/scout: >=5.0
- solarium/solarium: ^4.2
Requires (Dev)
- squizlabs/php_codesniffer: ^3.2
- vimeo/psalm: ^3.1
- dev-main
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.0
- v1.8.1
- v1.8.0
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4
- v1.3
- v1.2
- v1.1
- v1.0
- dev-dependabot/npm_and_yarn/npm_and_yarn-f1947d1c58
- dev-chore/dependencies
- dev-feat/arbitrary-query-params
- dev-chore-update-devcontainer
- dev-feat-configurable-timeout
- dev-fix-unpredictable-query-parser
- dev-pxslip/issue83
- dev-imp-implement-psalm-action
- dev-wskruse/issue80
- dev-chore-npm-deps
- dev-loosen-version-constraint-scout
This package is auto-updated.
Last update: 2024-09-18 15:46:31 UTC
README
此引擎提供Laravel Scout与Solr实例之间的接口。
安装
composer require pxslip/laravel-scout-solr
对于Laravel <= 5.4,应将服务提供者在 config/app.php
中注册
'providers' => [ // ...other providers Scout\Solr\ScoutSolrServiceProvider::class, ]
使用方法
由于引擎使用了一些与 Laravel\Scout\Builder
和 Laravel\Scout\Searchable
不完全兼容的功能,您需要使用 Scout\Solr\Builder
和 Scout\Solr\Searchable
版本
use Scout\Solr\Searchable; class MyModel extends Model { use Searchable; ... } // and then to perform a search MyModel::where(...) ->orWhere(...) ->facetField(...)
待办事项
- 添加绑定而不是仅传递字符串以提高转义能力
- 在Builder中添加嵌套查询
- 在ScoutEngine中添加嵌套查询
- 编写测试