QuestionQ3

Customize Commerce features

An Adobe Commerce Architect creates an Italian-locale stopword named stopwordsJtJT.csv and changes the stopword directory to:

<magento_root>/app/code/CustomVendor/Elasticsearch/etc/stopwords/

What is the correct way to change the stopwords directory within the custom module?

Explanation

Adobe Commerce configures custom-module stopwords through etc/di.xml for \Magento\Elasticsearch\SearchAdapter\Query\Preprocessor\Stopwords. Set stopwordsModule to CustomVendor_Elasticsearch and stopwordsDirectory to stopwords; the module-relative directory resolves to etc/stopwords, where the locale CSV file belongs.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!