pringuin/pimcore-lucene-search
Composer 安装命令:
composer require pringuin/pimcore-lucene-search
包简介
Pimcore 10.x Website Indexer (powered by Zend Search Lucene)
README 文档
README
Note
This is a fork of the original dachcom-digital/pimcore-lucene-search repository. Dachcom did not update this bundle for Pimcore X in favor of the Dynamic Search Bundle
This includes changes by yosoDev and beheist, thanks a lot!
Requirements
- Pimcore >= 11
Pimcore 10
Use the version 3.X for Pimcore 10
Pimcore 5/6
Get the Pimcore 5/6 Version here.
Pimcore 4
Get the Pimcore4 Version here.
Installation
- Add code below to your
composer.json - Activate & install it through the ExtensionManager
"require" : { "pringuin/pimcore-lucene-search" : "~4.0.0" }
Configuration
To enable LuceneSearch, add those lines to your AppBundle/Resources/config/pimcore/config.yml:
lucene_search: enabled: true
A complete setup could look like this:
lucene_search: enabled: true fuzzy_search_results: false search_suggestion: true seeds: - 'http://your-domain.dev' filter: valid_links: - '@^http://your-domain.dev.*@i' view: max_per_page: 10 crawler: content_max_size: 4 content_start_indicator: '<!-- main-content -->' content_end_indicator: '<!-- /main-content -->'
You need to add the config parameter to your config.yml to override the default values. Execute this command to get some information about all the config elements of LuceneSearch:
# configuration about all config parameters $ bin/console config:dump-reference LuceneSearchBundle # configuration info about the "fuzzy_search_results" parameter $ bin/console config:dump-reference LuceneSearchBundle fuzzy_search_results
We also added a detailed documentation about all possible config values.
Features
- Maintenance driven indexing
- Auto Complete
- Restricted Documents & Usergroups (member plugin recommended but not required)
Usage
Default
The crawler Engine will start automatically every night by default. Please check that the pimcore default maintenance script is properly installed.
Command Line Command
If you want to start the crawler manually, use this command:
$ php bin/console lucenesearch:crawl -f -v
| command | short command | type | description |
|---|---|---|---|
force |
-f |
force crawler start | sometimes the crawler stuck because of a critical error mostly triggered because of wrong configuration. use this command to force a restart |
verbose |
-v |
show some logs | good for debugging. you'll get some additional information about filtered and forbidden links while crawling. |
Logs
You'll find some logs from the last crawl in your backend (at the bottom on the LuceneSearch settings page). Of course you'll also find some logs in your var/logs folder.
Note: please enable the debug mode in pimcore settings to get all types of logs.
Further Information
- Categories: Learn more about category based crawling / searching.
- Custom Header: Learn how to add custom headers to the crawler request (like a auth token).
- Restrictions: Learn more about restricted crawling / indexing.
- Custom Meta Content: Learn more about crawling / searching custom meta.
- Crawler Events: Hook into crawler process to add custom fields to index.
- Lucene Document Modification: Remove or change availability of lucene documents within a pimcore update/deletion event.
- Frontend Implementation: Get a step by step walkthrough to implement lucene search into your website.
Copyright and license
Copyright: DACHCOM.DIGITAL
For licensing details please visit LICENSE.md
Upgrade Info
Before updating, please check our upgrade notes!
pringuin/pimcore-lucene-search 适用场景与选型建议
pringuin/pimcore-lucene-search 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 892 次下载、GitHub Stars 达 5, 最近一次更新时间为 2022 年 03 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「search」 「lucene」 「pimcore」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pringuin/pimcore-lucene-search 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pringuin/pimcore-lucene-search 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pringuin/pimcore-lucene-search 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
a general purpose text search engine written entirely in PHP 5
Pimcore 5.x Website Indexer (powered by Zend Search Lucene)
A Laravel package to retrieve data from Google Search Console
Laravel 5.5 package for full-text search over Eloquent models based on ZendSearch Lucene.
ElasticSearch and Solr entity mapping library
统计信息
- 总下载量: 892
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2022-03-23
