I am trying to change the logic in my Elasticsearch engine from “and” logic to “or” logic following the advise of the second answer in this question How do I change Magento 2 search from OR logic to AND?. I have gotten stuck on the di.xml part. I have implemented the di.xml and the Match.php in a Hello World module that I know works. Right now, the Match.php file is identical to the original so I would expect if the di.xml file is working correctly that nothing would happen. Instead, when I try to compile, I end up with the product pages being blank, and this problem goes away if I remove the di.xml file. I am still new to Magento 2 and haven’t created a working di.xml file yet and figured it was time to learn. I have been searching for a di.xml example that I could use to verify that I have working di.xml file, but most of the examples/solutions had too much extra context to implement and I have not been able to get any of them to work. I am wondering if anyone could provide a simple as possible example of a working di.xml file that uses preferences to override a class and gives easy to find output such as printing to a test page.