How to setTemplate in custom module for search.
Spacename/Modulename/view/frontend/layout/default.xml
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="topSearch">
<arguments>
<argument name="template" xsi:type="string">Spacename_Modulename::form.mini.phtml</argument>
</arguments>
</referenceBlock>
</body>
</page>
just want to change his template file. how to do that?
this solution not working for me.