Convert PDF documents to searchable text and enable fast full-text search using Elasticsearch.
- ✅ Convert PDFs to searchable text
- ✅ Elasticsearch integration for fast search
- ✅ Admin panel for configuration
- ✅ Reindex command for bulk updates
- ✅ Edit Review and edit title, description etc ...
- 🧩 Search results in Storefront search suggestions
Upload a PDF file to the Shopware media manager.
Click on the PDF file - the plugin automatically:
- Extracts text content from the PDF
- Saves the content to the database
- Indexes the content in Elasticsearch
PDF search results appear in the Storefront search suggestions.
cd custom/plugins/ git clone https://github.com/pedramham1/mori-elastic-search.git
php bin/console plugin:refresh
php bin/console plugin:install --activate MoriElasticSearch
./bin/build-administration.sh
php bin/console cache:clear
Note:
- The
./bin/build-administration.shcommand is required for custom plugins- Run commands from your Shopware project root directory
##Tools ####Fixing Issues with ECS To start using ECS, just run it, If you're sure, go for a fix command:
vendor/bin/ecs check src --fix
####Running Unit Tests with PHPUnit
./vendor/bin/phpunit --configuration="custom/plugins/WarrantyManager"
####Analyzing PHP Code with PHPStan
vendor/bin/phpstan analyse src
cd /var/www/html/shopwareProject
XDEBUG_MODE=coverage vendor/bin/phpunit -c custom/plugins/MoriElasticSearch/phpunit.xml custom/plugins/MoriElasticSearch/tests/ --coverage-html var/log/coverage
or
vendor/bin/phpunit -c custom/plugins/MoriElasticSearch/phpunit.xml custom/plugins/MoriElasticSearch/tests/





