Web Analytics

Fill the form & Get Installation Support

Any Question or Concerns?
Let's discuss





    How to check programmatically elasticsearch is enabled or not in Magento2?

    Related articles

    If your site has installed a third-party search engine and you want to know the elastic search is enabled or not, you can identify it.

    First, you need to instantiate the Magento\Elasticsearch\Model\Config class to your __construct() method.

    And then you can use the below code.

    Now, you need to call below command.

    The result will be true if your site has enabled elastic search.

    Contact us for scientific strategies to increase your site conversions





      Connect With Us