Question

I have just installed magento2.4 with sample data. Setup looks fine from frontend and backend also, but facing 2 issues -
1 - when I run 'indexer:reindex' command, it giving me below issue -

Catalog Search index process unknown error: {"error":"MapperParsingException[No handler for type [text] declared on field [_search]]","status":400}

don't know why it is giving this issue,

2 - I have created one more website/store in same instance. Created a different root category and 2sub categories in it, and also assigned products to these new subcategories, but products not showing on frontend over this website. On default website they are showing properly. I checked, they are in-stock, have qty greater then 0, assigned to respective website also.
run indexer and cache clean command multiple time..but no success.

Both site's frontend URl's are -

http://localhost/mage2/us (on this products showing properly)

http://localhost/mage2ca (Same products not showing here)

Plz helo me to solve this. enter image description here

Était-ce utile?

La solution

While upgrading did you came across with errors? If yes please install the setup again.

I can share the stepwise guide to install setup with error-free code.

Let me know in case it is required because I am also working on this setup and it is working fine.

Make sure you are using the correct version of xamp(7.3/7.4)

FOR Elasticsearch please run this command: php bin/magento module:disable Magento_Elasticsearch6 Magento_Elasticsearch Magento_Elasticsearch7

Still, if issues come let me know.

For installation steps please go through : https://github.com/rashigoyal14/main/blob/master/installation%20steps.odt

Thanks, Rashi

Autres conseils

Hi First of all please check your catalog search engine using below command

<root>bin/magento config:show catalog/search/engine

Now if it set to MYSQL which is deprecated in magento 2.4, which you can read here in the official release notes:-

https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements-tech.html

Now Change your Catalog Search engine to elastic search 7 by using below command.

bin/magento config:set catalog/search/engine elasticsearch7

Now you just need to configure your elastic search in

STORES>CONFIGURATION>CATALOG>CATALOG>CATALOG SEARCH> SEARCH ENGINE

you can also follow this blog to know more about configure elastic search https://magecomp.com/blog/magento-2-how-to-configure-elasticsearch/

PLEASE NOTE THIS THING IF YOU WANT TO UPGRADE TO MAGETNO 2.4.0 IN FUTURE:- You must install and configure Elasticsearch 7 before upgrading to Magento 2.4.0. New installations require a connection to Elasticsearch to complete.

The catalog search index error generally occurs when Elastic search is not compatible with Magneto installed. In magento 2.4, elastic search is not setup automatically. So you can disable the elastic search for the moment using below command:

php bin/magento module:disable Magento_Elasticsearch6 Magento_Elasticsearch Magento_Elasticsearch7

And then check. The issue must get solved. But this would affect your catalog search for products. So I would suggest you to reinstall Magneto2.4.

You can check the installation steps here: https://meetanshi.com/blog/install-magento-2-4-via-command-line/

Make sure your elasticsearch is configured before installing magento 2.4, otherwise the same issue will be seen again.

Please let me know if this solves your problem.

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top