Upgrading the Klevu Search Magento 2 Extension

There are 2 methods to upgrade the repository of Klevu Magento 2 extension:
  1. Using composer method:
    • Use the following command to install the latest plugin
      composer require klevu/module-search
  2. Using Manual Klevu Search metapackage:
      • Clone the following repositories from Github by executing below commands:
        • HTTPS: git clone https://github.com/klevu/productsearch.git
          • After cloning, please create folder structure app/code/Klevu/Search
          • Copy all the files which you have downloaded from above link to the Search folder
        • HTTPS: git clone https://github.com/klevu/content.git
          • After cloning, please create folder structure app/code/Klevu/Content
          • Copy all the files which you have downloaded from above link to the Content folder
        • HTTPS: git clone https://github.com/klevu/addtocart.git
          • After cloning, please create folder structure app/code/Klevu/Addtocart
          • Copy all the files which you have downloaded from above link to the Addtocart folder

After upgrading the repository, please follow the steps below:
  1. Open terminal/command prompt in your operating system and go to <magento2-root-folder> 
  2. Execute the following two commands
    php bin/magento setup:upgrade

    php bin/magento setup:static-content:deploy

  3. Go to <magento2-root-folder>/var/ folder and clear the following folders
    • cache
    • generation
    • page_cache