Deal of The Day! 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 58 Discussion

Posted by Francesco on Jun 26, 2026 at 09:20 PM

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?

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

Get Premium AD0-E722 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
IZ
Izetta 4 days ago
I agree, A seems straightforward. Easy to implement.
BE
Bea 9 days ago
I think option A is the way to go. It directly modifies the stopwords directory.
BU
Buddy 14 days ago
Good points all around!
ES
Esteban 20 days ago
A for quick fixes, definitely.
MA
Mariann 25 days ago
I lean towards B for long-term stability.
BU
Buddy 30 days ago
So, A or B?
ES
Esteban 1 month ago
I agree, auto-detection isn't reliable.
MA
Mariann 1 month ago
C might work, but I doubt Adobe will auto-detect.
BU
Buddy 2 months ago
C is interesting too.
ES
Esteban 2 months ago
True, but A is simpler for quick changes.
MA
Mariann 2 months ago
But it ensures the core config is updated.
BU
Buddy 2 months ago
B seems complex though.
MA
Mariann 2 months ago
I prefer option B.
ES
Esteban 2 months ago
It directly modifies the stopwords directory.
BU
Buddy 3 months ago
Why A?
ES
Esteban 3 months ago
I think option A is the best choice.
BU
Buddy 3 months ago
This question is tricky.
MA
Marg 3 months ago
Not sure about C, that seems a bit off to me.
PA
Patria 3 months ago
I agree with A, it’s straightforward and effective.
AS
Ashley 3 months ago
Wait, can Adobe really auto-detect modules like that? Sounds too easy!
DO
Dorathy 4 months ago
I think B is better for modifying core values.
NO
Novella 4 months ago
Option A seems like the right way to go.
FR
France 4 months ago
I vaguely recall that adding a new class implementing PatchInterface was a way to make changes, but I’m not confident if that applies here.
JU
Julieta 4 months ago
I’m a bit confused about the differences between the classes mentioned in the options. I thought we only needed to change the stopwordsDirectory in one place.
AM
Amalia 4 months ago
This question seems similar to one we practiced where we had to adjust stopword settings. I feel like option A might be the right approach, but I could be mixing it up.
ZA
Zana 4 months ago
I think I remember something about modifying the stopwords directory in the XML configuration, but I'm not entirely sure which class to reference.
0/2000 characters

Save Cancel