Installation
On this page, you will find two possible ways to proceed with our extension's installation.
Installation via composer (preferably)
We recommend this installation method because the composer automatically checks and installs the necessary dependencies, and it is also much easier to keep the extension up-to-date.
- Back up your store's database and web directory.
- Log in to the SSH console of your server and navigate to the root directory of the Magento 2 store.
- Copy the installation instructions from the My Downloadable Products / View & Download page to the SSH console.
If you bought the extension in the Magento Marketplace, run the command in your store's root folder.
composer require mirasvit/module-search-ultimate
- To enable the extension, run the commands:
php -f bin/magento module:enable Mirasvit_Core Mirasvit_Search Mirasvit_SearchMysql Mirasvit_SearchElastic Mirasvit_SearchSphinx Mirasvit_SearchAutocomplete Mirasvit_Misspell Mirasvit_SearchLanding Mirasvit_Report Mirasvit_SearchReport php -f bin/magento setup:upgrade
-
Clean the cache
php -f bin/magento cache:clean
-
Deploy static view files
rm -rf pub/static/* rm -rf var/view_preprocessed/* php -f bin/magento setup:static-content:deploy
- Reindex the search index and the spell-correction index
php -f bin/magento indexer:reindex catalogsearch_fulltext mst_misspell
Installation via direct file upload
You can also install the extension via direct files uploading.
- Go to My Downloadable Products / View & Download. Download the extension package.
If you bought the extension in the Magento Marketplace, you are not able to install the extension via a direct file upload. You need to do the installation via the composer, or contact the Mirasvit support team.
- Unpack .zip package and copy the contents to the Magento root directory
- Log in to the SSH console of your server and navigate to the Magento root directory.
-
To enable the extension, run the commands:
php -f bin/magento module:enable Mirasvit_Core Mirasvit_Search Mirasvit_SearchMysql Mirasvit_SearchElastic Mirasvit_SearchSphinx Mirasvit_SearchAutocomplete Mirasvit_Misspell Mirasvit_SearchLanding Mirasvit_Report Mirasvit_SearchReport Mirasvit_SearchGraphQl Mirasvit_SearchUltimate php -f bin/magento setup:upgrade
-
Clean the cache
php -f bin/magento cache:clean
-
Deploy static view files
rm -rf pub/static/* rm -rf var/view_preprocessed/* php -f bin/magento setup:static-content:deploy
-
Reindex search index and spell-correction index
php -f bin/magento indexer:reindex catalogsearch_fulltext mst_misspell
Learn about the initial setup:
Install the extension for Hyva
-
Run the command
composer require mirasvit/module-search-ultimate-hyva
-
Enable the installed Hyva modules:
php -f bin/magento module:enable Hyva_MirasvitSearch Hyva_MirasvitSearchAutocomplete Hyva_SearchMisspell
-
Update the Magento database schema and data with the command:
php -f bin/magento setup:upgrade
-
Compile the code of the installed extension:
php -f bin/magento setup:di:compile
-
Check the file app/etc/hyva-themes.json. If there are no entries for the mirasvit/module-search-ultimate-hyva package - run the following command:
php -f bin/magento hyva:config:generate
-
Generate the styles for the installed extension:
cd /path/to/theme/web/tailwind/; npm run build-prod
-
Deploy the static view files
cd /path/to/project/; rm -rf pub/static/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:static-content:deploy
- Run the command below to clean the cache:
php -f bin/magento cache:flush