New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E722 Exam - Topic 7 Question 49 Discussion

Actual exam question for Adobe's AD0-E722 exam
Question #: 49
Topic #: 7
[All AD0-E722 Questions]

An Adobe Commerce Architect creates a stopword for the Italian locale named stopwordsjtJT.csv and changes the stopword directory to the following: /app/code/Custovendor/Elasticsearch/etc/stopwords/

What is the correct approach to change the stopwords directory inside the custom module?

Show Suggested Answer Hide Answer
Suggested Answer: A

According to the Adobe Commerce documentation, the correct approach to change the stopwords directory inside a custom module is to use dependency injection to override the default values of the stopwordsDirectory and stopwordsModule parameters of the MagentoElasticsearchSearchAdapterQueryPreprocessorStopwords class. The stopwordsDirectory parameter specifies the relative path of the stopwords directory from the module directory, while the stopwordsModule parameter specifies the name of the module that contains the stopwords directory. By adding these parameters to the di.xml file of the custom module, the Architect can change the location of the stopwords files without modifying the core code or database.


To change the directory from your module

Configure Elasticsearch stopwords

Contribute your Thoughts:

0/2000 characters
Denna
4 days ago
Option A is the way to go, but I hope the exam doesn't ask us to write the actual XML code. That would be a pain!
upvoted 0 times
...
Kirk
9 days ago
Option B sounds like a lot of work just to change the stopwords directory. I'd go with Option A or C.
upvoted 0 times
...
Theola
14 days ago
I think Option C is the way to go. It's more straightforward and doesn't require modifying the core config.
upvoted 0 times
...
Ronny
19 days ago
Option A seems like the correct approach, but I'm not sure if it's the most efficient way to handle this.
upvoted 0 times
...
Arthur
25 days ago
I'm a bit confused about the differences between the options. I thought we could just change the stopwords in the XML, but now I'm not sure if that's enough.
upvoted 0 times
...
Arthur
30 days ago
I believe option A sounds correct because it mentions adding to the stopwordsDirectory, which seems like the right approach for this task.
upvoted 0 times
...
Antonio
1 month ago
This question feels familiar! I practiced a similar one where we had to adjust stopwords in a custom module, but I can't recall the exact parameters.
upvoted 0 times
...
Ty
1 month ago
I think I remember something about modifying the stopwords directory in the XML files, but I'm not sure if it's the right class to use.
upvoted 0 times
...
Aliza
2 months ago
I'm feeling pretty confident about this one. Based on my understanding of Magento's stopwords functionality, Option C is the correct approach. By adding the stopwords file to the stopwordsDirectory parameter of the DirectoryBuilder class, Magento will automatically detect the custom stopwords file within the module. This is a common way to extend Magento's default behavior without having to modify core code.
upvoted 0 times
...
Kattie
2 months ago
Okay, let me think this through step-by-step. The question is asking about changing the stopwords directory within a custom module, so I'm guessing the correct approach involves modifying the configuration in some way. Option B seems like it might be the right approach, as it mentions updating the core_config_data table, which is where Magento stores its configuration. I'll need to research the details, but that's the direction I'm leaning.
upvoted 0 times
...
Phillip
2 months ago
Hmm, this is a tricky one. I think the key is understanding where Magento expects the stopwords files to be located and how to properly integrate a custom stopwords file within a module. Option C looks promising, but I'll need to double-check the details to make sure I'm not missing anything.
upvoted 0 times
...
Jeanice
2 months ago
I'm not entirely sure about the correct approach here. The question seems to be testing our knowledge of Magento's stopwords functionality and how to modify it within a custom module. I'll need to carefully review the options and think through the implications of each approach.
upvoted 0 times
...

Save Cancel