Hi,
When rendering catalog search results, we would like to interfere in the process and inject our own product IDs before asking the Magento to render search results.
To achieve this, we are trying to reset catalog search query in the following file:
vendor\magento\module-catalogsearch\Model\ResourceModel\Fulltext\Collection.php
We see that M2 is creating and inserting some values in catalogsearch_fulltext_scope1 and search_tmp_5701d40e461c60_04941413 table (which seems like a memory type table).
We would like to remove dependencies on these two tables. Is there a way we can achieve this?
Preferably, if it is possible, we would like to get this done by using the full text collection rewrite method. Any help/pointer on this matter is greatly appreciated.
Thank you,
Niraj