magento2 – Magento + ElasticSearch does not show search results

Before enabling ElasticSearch, the search bar gave me a list of matching categories, products, and blog posts. And when I press enter, the search results page will contain the matching products.

After enabling ElasticSearch, search term suggestions are displayed, but the results page does not contain products. Interestingly if I do an "advanced search" (/ catalogsearch / advanced) I get the results I would expect.

I am using Magento 2.3.4 with ElasticSearch 6.8.7.

I have done the following on my test server to try to diagnose the problem:

  • Configured and configured ElasticSearch.
  • Configured Magento according to the Magento documentation, I get the message "Successful! Try again?" button
  • Run bin / magento indexer: reindex
  • I installed kibana to make sure I can see and search the data in ElasticSearch, yes I can.
  • Changed to the luma theme to remove the theme as the problem.
  • Log files were checked to see if there is a new error message (error, exception, system). No messages were generated by searching in addition to the access log messages.

If anyone has any suggestions or advice, I would really appreciate it.

Thank you,

magento2: indexing optimization catalogrule_product_price

We have a situation where catalogrule_product_price The table has around 13,000,000 rows.
Indexing is time consuming and the main goal is to speed it up and leave more resources for the server.
The greatest success comes from websites and customer groups (52 of them currently and on the rise).

I was wondering if it would be considerable / feasible to make Magento believe it only has one group of clients (0) regarding indexing.
Somehow take advantage of the logic that every time you try to loop through the customer groups to index, you get a fixed group (0). And every time you try to charge the price from catalogrule_product_price table based on the customer_group_id, you would be forced to request the price for the fixed group ID (0).

That idea came about as we know that custom pricing will not be used for customer groups. Theoretically, the logic could be extended to have a setting at the customer group level, which defines whether this specific customer group should be included for indexing (which would be selected if this group actually got a special price rule).

Or is there any other alternative to do it faster?

magento2 – After updating Magento 2.3.4 No data in store email section

Stack Exchange Network

The Stack Exchange network consists of 175 question and answer communities, including Stack Overflow, the largest and most trusted online community for developers to learn, share their insights, and develop their careers.

Visit Stack Exchange

magento2 – Magento 2 creates product duplicates Images are duplicate problems

when saving the product with the duplicate in Magento 2 and then
the images are double,

Photos are duplicated when duplicating an item, so the duplicate item has two images. If you duplicate that, the new item has four images. We only need one image when duplicating an item.

If any suggestion please let me know,

please as soon as possible,

Thank you,

magento2: how to display product configuration attributes based on store view on order summary page

How to display product configuration attributes based on store view on order summary checkout page

I am trying to get product attributes based on store view in order summary, mazeplaza Magento 2 OPC module

Can anyone have any idea how I can achieve this?

magento2 – Magento 2 with Page Builder: how to get correct HTML tags

I recently upgraded from 2.2.5 to 2.3.4

As I can see CMS blocks now have a page builder, my block data was migrated correctly:

My Custom Title

however if I hit save I notice additional HTML is added:

My Custom Title

As you can see, the opening and closing symbols are encoded in < Y >

I still call blocks normally using


But the labels are not converted again correctly. What can I do to make the HTML tags call correctly?

magento2 – How to fix / core / index / notFound

I have been working on a Magento 2 development project for a few months and until recently there were no problems. However, when I started it today, my main css file came back like this: and none of the main css site css is working. The css for the other extensions still works, only the styles.css file from the main site doesn't work.

I have flushed the cache, ran setup: upgrade, s: s: d, setup: di: compile, composer update and nothing has worked to get rid of this error. There are also no errors. I've looked everywhere, but couldn't find anything related to this particular error, especially since yesterday it was working fine.

How to save customer address id at customer level if delete address in Magento2?

I don't know how to implement this task. I need to save the customer address id at the customer level if an address is removed in Magento2. Can you help me?

magento2 – Magento 2 | add Terms and conditions to customer registration

I am currently trying to add Terms and Conditions to the customer record.
I thought the best thing would be to just update the design.

So I simply extended customer_account_create.xml this in my theme:


However, it does not display any check boxes.

Any idea why?

Thanks in advance!

magento2 – I created a data patch, configuration: update never ends

I have created a data patch, after running configuration: update does the job but never completes configuration update command.

View post on

View post on

the data patch itself looks like this

setAreaCode('frontend') ;
        $this->searchCriteriaBuilder = $searchCriteriaBuilder;
        $this->_productRepositoryInterface = $productRepositoryInterface;
        $this->attributeRepository = $attributeRepository;
        $this->collectionFactory = $collectionFactory;

     * @inheritDoc
    public static function getDependencies()
        return ();

     * @inheritDoc
    public function getAliases()
        return ();
    public function apply()
          //$searchCriteria = $this->searchCriteriaBuilder->addFilter('manufacturer','LG')->create();

        $productcollection = $this->collectionFactory->create()->addAttributeToSelect('manufacturer','LG')->load();
        foreach ($productcollection as $product) {
            try {
            } catch (StateException $e) {



I tried using return after the end of foreach but nothing happened.