In magento2 I want to change the catalog search query of the frontend.
In particular, when there are multiple words in search query I would search with AND instead of OR. Example "red apple" not "red" and "apple".
Which file should I change?
magento2
In magento2 I want to change the catalog search query of the frontend.
In particular, when there are multiple words in search query I would search with AND instead of OR. Example "red apple" not "red" and "apple".
Which file should I change?
Best Answer
You can find the execute function at
You can modify the query by your module Ref
Hope this helps.